Some more assorted fixes
authorJoshua Leung <aligorith@gmail.com>
Sat, 16 Mar 2013 05:58:59 +0000 (05:58 +0000)
committerJoshua Leung <aligorith@gmail.com>
Sat, 16 Mar 2013 05:58:59 +0000 (05:58 +0000)
* More duplicate/wrong comments (copy+paste errors)
* Brough Calculate/Clear Motion Path UI for bones more in line with the Object
version

release/scripts/startup/bl_ui/space_view3d_toolbar.py
source/blender/editors/space_nla/nla_channels.c
source/blender/editors/space_nla/nla_edit.c

index 8fb48f96073572dd9ffcacbb6352a363ba2b404f..2e98cb68eb5b029e86237201586f3c44b2c9b380 100644 (file)
@@ -472,8 +472,9 @@ class VIEW3D_PT_tools_posemode(View3DPanel, Panel):
 
         col = layout.column(align=True)
         col.label(text="Motion Paths:")
-        col.operator("pose.paths_calculate", text="Calculate Paths")
-        col.operator("pose.paths_clear", text="Clear Paths")
+        row = col.row(align=True)
+        row.operator("pose.paths_calculate", text="Calculate")
+        row.operator("pose.paths_clear", text="Clear")
 
         draw_repeat_tools(context, layout)
 
index a4b036bf00f74098af9841277b803f6a7b87bb1f..177a781bcc2112ccad5ac38d0c2b43429fb79de0 100644 (file)
@@ -469,7 +469,8 @@ static bool nlaedit_add_tracks_empty(bAnimContext *ac)
        return added;
 }
 
-/* Add Tracks exec() */
+/* ----- */
+
 static int nlaedit_add_tracks_exec(bContext *C, wmOperator *op)
 {
        bAnimContext ac;
index d337c3236c5b4dc5e99bf2e685e35e67f681e25b..17d403789cf063590cdc384f2e05fd15d4ccfd4f 100644 (file)
@@ -1627,7 +1627,7 @@ void NLA_OT_action_sync_length(wmOperatorType *ot)
        
        /* api callbacks */
        ot->exec = nlaedit_sync_actlen_exec;
-       ot->poll = ED_operator_nla_active; // XXX: is this satisfactory... probably requires a check for active strip...
+       ot->poll = nlaop_poll_tweakmode_off;
        
        /* flags */
        ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
@@ -2102,8 +2102,10 @@ static int nla_fmodifier_copy_exec(bContext *C, wmOperator *op)
                BKE_report(op->reports, RPT_ERROR, "No F-Modifiers available to be copied");
                return OPERATOR_CANCELLED;
        }
-       else
+       else {
+               /* no updates needed - copy is non-destructive operation */
                return OPERATOR_FINISHED;
+       }
 }
  
 void NLA_OT_fmodifier_copy(wmOperatorType *ot)
@@ -2157,8 +2159,6 @@ static int nla_fmodifier_paste_exec(bContext *C, wmOperator *op)
        
        /* successful or not? */
        if (ok) {
-               /* set notifier that things have changed */
-               /* set notifier that things have changed */
                WM_event_add_notifier(C, NC_ANIMATION | ND_NLA | NA_EDITED, NULL);
                return OPERATOR_FINISHED;
        }