Assorted anim editor fixes
authorJoshua Leung <aligorith@gmail.com>
Sat, 16 Mar 2013 05:48:46 +0000 (05:48 +0000)
committerJoshua Leung <aligorith@gmail.com>
Sat, 16 Mar 2013 05:48:46 +0000 (05:48 +0000)
* 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

source/blender/editors/space_action/action_select.c
source/blender/editors/space_graph/graph_select.c
source/blender/editors/space_nla/nla_edit.c
source/blender/editors/space_nla/nla_select.c

index c814c0b4d8cb1571b1ee2e402e5a5fa3cfa42517..b6d2d31f0ade6be8c612b10afd4f9f6645aaa83b 100644 (file)
@@ -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);
 }
index 6f4820caaed058ecc2278c4d996818d4fcc29b3b..cbec3072c446dd66034f3ddff0beb79ab24ce28c 100644 (file)
@@ -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);
index dab9b3ae0b8fef39f9f7ac70e6d77ffa14f60d64..d337c3236c5b4dc5e99bf2e685e35e67f681e25b 100644 (file)
@@ -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", ""},
index 3d436bb565b2329beaa6fe1328dee4d9dfac42de..3e414233add8063baff4797f6c9826ef639bcd00 100644 (file)
@@ -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