diff options
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_undo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index 7a7dad9a454..fa398e3391b 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.c +++ b/source/blender/editors/sculpt_paint/sculpt_undo.c @@ -549,7 +549,7 @@ bool sculpt_undo_cleanup(bContext *C, ListBase *lb) unode = lb->first; - if (strcmp(unode->idname, ob->id.name) != 0) { + if (unode && strcmp(unode->idname, ob->id.name) != 0) { for (unode = lb->first; unode; unode = unode->next) { if (unode->bm_entry) BM_log_cleanup_entry(unode->bm_entry); |