forked from bartvdbraak/blender
Assorted anim editor fixes
* Click-select operators don't have "register" flag anymore * Graph Editor click select can be undone, just like everything else * "Current frame" -> "Current Frame" for consistency with rest of menu
This commit is contained in:
parent
150891605f
commit
9aa4396a97
@ -1264,16 +1264,17 @@ void ACTION_OT_clickselect(wmOperatorType *ot)
|
||||
ot->idname = "ACTION_OT_clickselect";
|
||||
ot->description = "Select keyframes by clicking on them";
|
||||
|
||||
/* api callbacks - absolutely no exec() this yet... */
|
||||
/* callbacks */
|
||||
ot->invoke = actkeys_clickselect_invoke;
|
||||
ot->poll = ED_operator_action_active;
|
||||
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
||||
ot->flag = OPTYPE_UNDO;
|
||||
|
||||
/* properties */
|
||||
prop = RNA_def_boolean(ot->srna, "extend", 0, "Extend Select", ""); // SHIFTKEY
|
||||
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
||||
|
||||
prop = RNA_def_boolean(ot->srna, "column", 0, "Column Select", ""); // ALTKEY
|
||||
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
||||
}
|
||||
|
@ -1342,10 +1342,13 @@ void GRAPH_OT_clickselect(wmOperatorType *ot)
|
||||
ot->idname = "GRAPH_OT_clickselect";
|
||||
ot->description = "Select keyframes by clicking on them";
|
||||
|
||||
/* api callbacks */
|
||||
/* callbacks */
|
||||
ot->invoke = graphkeys_clickselect_invoke;
|
||||
ot->poll = graphop_visible_keyframes_poll;
|
||||
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_UNDO;
|
||||
|
||||
/* properties */
|
||||
prop = RNA_def_boolean(ot->srna, "extend", 0, "Extend Select", ""); // SHIFTKEY
|
||||
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
||||
|
@ -1801,7 +1801,7 @@ void NLA_OT_clear_scale(wmOperatorType *ot)
|
||||
|
||||
/* defines for snap keyframes tool */
|
||||
static EnumPropertyItem prop_nlaedit_snap_types[] = {
|
||||
{NLAEDIT_SNAP_CFRA, "CFRA", 0, "Current frame", ""},
|
||||
{NLAEDIT_SNAP_CFRA, "CFRA", 0, "Current Frame", ""},
|
||||
{NLAEDIT_SNAP_NEAREST_FRAME, "NEAREST_FRAME", 0, "Nearest Frame", ""}, // XXX as single entry?
|
||||
{NLAEDIT_SNAP_NEAREST_SECOND, "NEAREST_SECOND", 0, "Nearest Second", ""}, // XXX as single entry?
|
||||
{NLAEDIT_SNAP_NEAREST_MARKER, "NEAREST_MARKER", 0, "Nearest Marker", ""},
|
||||
|
@ -660,7 +660,7 @@ void NLA_OT_click_select(wmOperatorType *ot)
|
||||
ot->poll = ED_operator_nla_active;
|
||||
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
||||
ot->flag = OPTYPE_UNDO;
|
||||
|
||||
/* properties */
|
||||
prop = RNA_def_boolean(ot->srna, "extend", 0, "Extend Select", ""); // SHIFTKEY
|
||||
|
Loading…
Reference in New Issue
Block a user