diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-02-28 15:23:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-02-28 15:23:48 +0300 |
commit | e7aca5bd3c8d8199834b535e97972216e7747bfa (patch) | |
tree | 835706da955f8c28e6369b9d20eda5107aecef4e /source/blender | |
parent | 8a7eb6c4c1677cca8349ac250cd8f3c8ccdbd385 (diff) |
Null pointer check exiting sculpt mode
Needed for 2.8x, harmless here.
Diffstat (limited to 'source/blender')
-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 e550ed66fc2..824f870f3c5 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -1144,7 +1144,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; } |