Change frame for animations should not bein the UNDO stack
Request from Hjalti Hjalmarsson for the animation work. Basically a common part of the workflow of animation is to change the pose, scrub back and forth a few times and roll back the changes when unsatisfied. However if you go back and forth too many times the UNDO stack would be full, and it would not be possible to bring back the previous pose. I'm leaving clip_editor change frames as it is for now. But we can probably change the behaviour there as well.
This commit is contained in:
@@ -263,7 +263,7 @@ static void ANIM_OT_change_frame(wmOperatorType *ot)
|
||||
ot->poll = change_frame_poll;
|
||||
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_BLOCKING | OPTYPE_UNDO | OPTYPE_GRAB_CURSOR;
|
||||
ot->flag = OPTYPE_BLOCKING | OPTYPE_GRAB_CURSOR;
|
||||
|
||||
/* rna */
|
||||
ot->prop = RNA_def_int(ot->srna, "frame", 0, MINAFRAME, MAXFRAME, "Frame", "", MINAFRAME, MAXFRAME);
|
||||
|
Reference in New Issue
Block a user