Fix T64804 crash editing image paint fallof in edit mode

This commit is contained in:
Brecht Van Lommel 2019-05-21 16:31:42 +02:00
parent 4f6d6f982f
commit 9e82e48937
Notes: blender-bot 2024-01-26 16:24:24 +01:00
Referenced by issue #64804, Blender crashes when clicking on falloff option while in edit mode
Referenced by pull request #117544, Fix #117526: Crash when Changing Color Palette in Edit Mode
Referenced by commit a324a19f1b, Fix #117526: Crash when Changing Color Palette in Edit Mode
1 changed files with 4 additions and 1 deletions

View File

@ -102,8 +102,11 @@ void BKE_paint_invalidate_overlay_tex(Scene *scene, ViewLayer *view_layer, const
void BKE_paint_invalidate_cursor_overlay(Scene *scene, ViewLayer *view_layer, CurveMapping *curve)
{
Paint *p = BKE_paint_get_active(scene, view_layer);
Brush *br = p->brush;
if (p == NULL) {
return;
}
Brush *br = p->brush;
if (br && br->curve == curve) {
overlay_flags |= PAINT_OVERLAY_INVALID_CURVE;
}