diff options
-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 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; } |