From bd25e73c540d7fb7f2a3e52994429ed77bebcbd0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 28 Feb 2018 23:23:48 +1100 Subject: Null pointer check exiting sculpt mode Needed for 2.8x, harmless here. --- source/blender/editors/sculpt_paint/paint_vertex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/sculpt_paint') 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; } -- cgit v1.2.3