Bugfix #26013
authorTon Roosendaal <ton@blender.org>
Thu, 10 Feb 2011 17:23:00 +0000 (17:23 +0000)
committerTon Roosendaal <ton@blender.org>
Thu, 10 Feb 2011 17:23:00 +0000 (17:23 +0000)
Good discovery this one.
It appeared that "pose mode" changes were not registered in our undo system.
That way the first operator you try to redo after exit posemode fails.

source/blender/editors/object/object_edit.c

index 0acdc8b61fee731304b1b3283aae1f1ac22f04de..93da359227554ee756c3e09ff7b95d538b0f7cc4 100644 (file)
@@ -587,7 +587,7 @@ void OBJECT_OT_posemode_toggle(wmOperatorType *ot)
        ot->poll= ED_operator_object_active_editable;
        
        /* flag */
-       ot->flag= OPTYPE_REGISTER;
+       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* *********************** */