[Bf-blender-cvs] [bd25e73c540] blender2.8: Null pointer check exiting sculpt mode
Campbell Barton
noreply at git.blender.org
Wed Feb 28 14:34:58 CET 2018
Commit: bd25e73c540d7fb7f2a3e52994429ed77bebcbd0
Author: Campbell Barton
Date: Wed Feb 28 23:23:48 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBbd25e73c540d7fb7f2a3e52994429ed77bebcbd0
Null pointer check exiting sculpt mode
Needed for 2.8x, harmless here.
===================================================================
M source/blender/editors/sculpt_paint/paint_vertex.c
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list