[Bf-blender-cvs] [5a4f20d] master: Fix rare crash introduced by recent own commit

Antony Riakiotakis noreply at git.blender.org
Thu May 15 21:02:03 CEST 2014


Commit: 5a4f20d51717353d74c0091d98e7264b8fc5c730
Author: Antony Riakiotakis
Date:   Thu May 15 22:01:45 2014 +0300
https://developer.blender.org/rB5a4f20d51717353d74c0091d98e7264b8fc5c730

Fix rare crash introduced by recent own commit

===================================================================

M	source/blender/editors/sculpt_paint/sculpt_undo.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c
index 7a7dad9..fa398e3 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);




More information about the Bf-blender-cvs mailing list