== Action Editor - Overlapping Keyframes Bugfix ==
Now when moving keyframes in the Action Editor, any existing keyframes on the frames where a selected keyframe lands (after the transform) will be removed. This is to prevent stacks of keyframes which cause blips and headaches for animators (especially stressed animators with a looming deadline). I've added an option to the Action Editor's View menu to turn this behaviour on/off (by default, it's on). This shouldn't need to be used too much, and may be removed in due course. If it stays, it'll need a better name...
This commit is contained in:
@@ -98,7 +98,8 @@ enum {
|
||||
ACTMENU_VIEW_NOHIDE,
|
||||
ACTMENU_VIEW_OPENLEVELS,
|
||||
ACTMENU_VIEW_CLOSELEVELS,
|
||||
ACTMENU_VIEW_EXPANDALL
|
||||
ACTMENU_VIEW_EXPANDALL,
|
||||
ACTMENU_VIEW_TRANSDELDUPS
|
||||
};
|
||||
|
||||
enum {
|
||||
@@ -333,6 +334,9 @@ static void do_action_viewmenu(void *arg, int event)
|
||||
case ACTMENU_VIEW_EXPANDALL: /* Expands all channels */
|
||||
expand_all_action();
|
||||
break;
|
||||
case ACTMENU_VIEW_TRANSDELDUPS: /* Don't delete duplicate/overlapping keyframes after transform */
|
||||
G.saction->flag ^= SACTION_NOTRANSKEYCULL;
|
||||
break;
|
||||
}
|
||||
allqueue(REDRAWVIEW3D, 0);
|
||||
}
|
||||
@@ -378,7 +382,14 @@ static uiBlock *action_viewmenu(void *arg_unused)
|
||||
"Show Hidden Channels|", 0, yco-=20,
|
||||
menuwidth, 19, NULL, 0.0, 0.0, 1,
|
||||
ACTMENU_VIEW_NOHIDE, "");
|
||||
|
||||
|
||||
// this option may get removed in future...
|
||||
uiDefIconTextBut(block, BUTM, 1, (G.saction->flag & SACTION_NOTRANSKEYCULL)?ICON_CHECKBOX_DEHLT:ICON_CHECKBOX_HLT,
|
||||
"AfterTrans Delete Dupli-Frames|", 0, yco-=20,
|
||||
menuwidth, 19, NULL, 0.0, 0.0, 1,
|
||||
ACTMENU_VIEW_TRANSDELDUPS, "");
|
||||
|
||||
|
||||
uiDefIconTextBut(block, BUTM, 1, (G.v2d->flag & V2D_VIEWLOCK)?ICON_CHECKBOX_HLT:ICON_CHECKBOX_DEHLT,
|
||||
"Lock Time to Other Windows|", 0, yco-=20,
|
||||
menuwidth, 19, NULL, 0.0, 0.0, 1,
|
||||
|
||||
Reference in New Issue
Block a user