diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-02-28 15:23:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-02-28 16:39:42 +0300 |
commit | bd25e73c540d7fb7f2a3e52994429ed77bebcbd0 (patch) | |
tree | 9681caaf8cb75fb309683224e64d8e1f5f9447d5 | |
parent | 1aeb9294f4aad7f7cdc6aa1b946d0f92e413710f (diff) |
Null pointer check exiting sculpt mode
Needed for 2.8x, harmless here.
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c index e028c752b88..5ecd530f5b7 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -1165,7 +1165,7 @@ static void ed_vwpaintmode_exit_generic( } /* If the cache is not released by a cancel or a done, free it now. */ - if (ob->sculpt->cache) { + if (ob->sculpt && ob->sculpt->cache) { sculpt_cache_free(ob->sculpt->cache); ob->sculpt->cache = NULL; } |