[Bf-blender-cvs] [7b9a457] strand_editmode: Sanity check: if there is no edited/active object for an undo step, consider it invalid and clean up.
Lukas Tönne
noreply at git.blender.org
Fri Jan 30 10:56:52 CET 2015
Commit: 7b9a45717a71901916b0a1e4679ec4ee3c01f4d3
Author: Lukas Tönne
Date: Fri Jan 30 09:36:04 2015 +0100
Branches: strand_editmode
https://developer.blender.org/rB7b9a45717a71901916b0a1e4679ec4ee3c01f4d3
Sanity check: if there is no edited/active object for an undo step,
consider it invalid and clean up.
===================================================================
M source/blender/editors/util/editmode_undo.c
===================================================================
diff --git a/source/blender/editors/util/editmode_undo.c b/source/blender/editors/util/editmode_undo.c
index 40e1387..c15d87d 100644
--- a/source/blender/editors/util/editmode_undo.c
+++ b/source/blender/editors/util/editmode_undo.c
@@ -208,7 +208,7 @@ static void undo_clean_stack(bContext *C)
next = uel->next;
/* for when objects are converted, renamed, or global undo changes pointers... */
- if (uel->type == obedit->type) {
+ if (obedit && uel->type == obedit->type) {
if (STREQ(uel->id.name, obedit->id.name)) {
if (uel->validate_undo == NULL)
is_valid = true;
More information about the Bf-blender-cvs
mailing list