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 15:23:48 +0300
commite7aca5bd3c8d8199834b535e97972216e7747bfa (patch)
tree835706da955f8c28e6369b9d20eda5107aecef4e /source/blender/editors/sculpt_paint
parent8a7eb6c4c1677cca8349ac250cd8f3c8ccdbd385 (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 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;
}