Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-02-28 15:23:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-02-28 16:39:42 +0300
commitbd25e73c540d7fb7f2a3e52994429ed77bebcbd0 (patch)
tree9681caaf8cb75fb309683224e64d8e1f5f9447d5 /source/blender/editors/sculpt_paint
parent1aeb9294f4aad7f7cdc6aa1b946d0f92e413710f (diff)
Null pointer check exiting sculpt mode
Needed for 2.8x, harmless here.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_vertex.c2
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;
}