diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-21 17:31:42 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-21 17:50:37 +0300 |
commit | 9e82e48937cc1620d79fb7b75f0bd826b7f7d84f (patch) | |
tree | dc774d9dc10ee03296700a26fbc0ebdf271e4f58 | |
parent | 4f6d6f982ff5e81bcd5a8828f88fbbde2b3c7d22 (diff) |
Fix T64804 crash editing image paint fallof in edit mode
-rw-r--r-- | source/blender/blenkernel/intern/paint.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/paint.c b/source/blender/blenkernel/intern/paint.c index bd06e2fe7e0..5849d691b03 100644 --- a/source/blender/blenkernel/intern/paint.c +++ b/source/blender/blenkernel/intern/paint.c @@ -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; } |