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 0acdc8b..93da359 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;
 }
 
 /* *********************** */