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:
authorAntony Riakiotakis <kalast@gmail.com>2014-05-15 23:01:45 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-05-15 23:01:45 +0400
commit5a4f20d51717353d74c0091d98e7264b8fc5c730 (patch)
treebad55ec99e473f2f089a39e19fd48a4f2c7b28f3 /source/blender/editors/sculpt_paint/sculpt_undo.c
parent9bbe42a4d8621a6034adaaa8636491b8ed66213f (diff)
Fix rare crash introduced by recent own commit
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_undo.c')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_undo.c2
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);