[Bf-blender-cvs] [71af08e] master: Fix T44212: Crash on Group Rename.
Bastien Montagne
noreply at git.blender.org
Wed Apr 1 09:49:58 CEST 2015
Commit: 71af08e1c972024244e48096a3f44da25de2eb95
Author: Bastien Montagne
Date: Wed Apr 1 09:48:48 2015 +0200
Branches: master
https://developer.blender.org/rB71af08e1c972024244e48096a3f44da25de2eb95
Fix T44212: Crash on Group Rename.
Nice offset-by-one index error. ;)
===================================================================
M source/blender/editors/space_outliner/outliner_tools.c
===================================================================
diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c
index fc6717f..af21478 100644
--- a/source/blender/editors/space_outliner/outliner_tools.c
+++ b/source/blender/editors/space_outliner/outliner_tools.c
@@ -946,16 +946,15 @@ static int outliner_group_operation_exec(bContext *C, wmOperator *op)
default:
BLI_assert(0);
}
-
if (event == 3) { /* instance */
/* works without this except if you try render right after, see: 22027 */
DAG_relations_tag_update(CTX_data_main(C));
}
-
- ED_undo_push(C, prop_group_op_types[event].name);
+
+ ED_undo_push(C, prop_group_op_types[event - 1].name);
WM_event_add_notifier(C, NC_GROUP, NULL);
-
+
return OPERATOR_FINISHED;
}
More information about the Bf-blender-cvs
mailing list