diff options
Diffstat (limited to 'source')
-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 f7e3e103e99..ef3fd5c93d0 100644 --- a/source/blender/blenkernel/intern/paint.c +++ b/source/blender/blenkernel/intern/paint.c @@ -96,7 +96,7 @@ Paint *paint_get_active_from_context(const bContext *C) obact = sce->basact->object; if (CTX_wm_space_image(C) != NULL) { - if (obact->mode == OB_MODE_EDIT) { + if (obact && obact->mode == OB_MODE_EDIT) { if (ts->use_uv_sculpt) return &ts->uvsculpt->paint; else |