diff options
-rw-r--r-- | source/blender/blenkernel/intern/paint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/paint.c b/source/blender/blenkernel/intern/paint.c index bc089d7bd80..278c6c0ee53 100644 --- a/source/blender/blenkernel/intern/paint.c +++ b/source/blender/blenkernel/intern/paint.c @@ -406,7 +406,7 @@ Paint *BKE_paint_get_active(Scene *sce, ViewLayer *view_layer) case OB_MODE_WEIGHT_GPENCIL: return &ts->gp_weightpaint->paint; case OB_MODE_EDIT: - return &ts->uvsculpt->paint; + return ts->uvsculpt ? &ts->uvsculpt->paint : NULL; default: break; } |