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:
authorLukas Tönne <lukas.toenne@gmail.com>2015-01-30 11:36:04 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-04-20 13:24:33 +0300
commit299859e40b2f9652ded56863e293c104705dbfb7 (patch)
tree998132775295a50defefaf53c1cd3dca67f34cde /source/blender/editors/util
parent5e42aff39795643490f0d3af9f9bd4ee1c730904 (diff)
Sanity check: if there is no edited/active object for an undo step,
consider it invalid and clean up.
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r--source/blender/editors/util/editmode_undo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/util/editmode_undo.c b/source/blender/editors/util/editmode_undo.c
index 06bcbd2e71a..7c4db697b01 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;