Commit: 911f9e00d13c57fb093b7ba7b930a340aa0a79a9
Author: Aaron Carlisle
Date:   Wed Oct 28 14:06:26 2020 -0400
Branches: blender-v2.91-release
https://developer.blender.org/rB911f9e00d13c57fb093b7ba7b930a340aa0a79a9

Animation: Improve labels on Snap menu in NLA & Dopesheet

Add "Selection to" as prefix for those menu items that move the selected
keyframes to something, for both the Key → Snap menu and the Shift+S pie
menu.

No functional changes.

This was missed in rB477d983c2e8ab298cbf638d5aadd77fad9c2f677

Differential Revision: https://developer.blender.org/D9304

===================================================================

M       release/scripts/startup/bl_ui/space_dopesheet.py
M       release/scripts/startup/bl_ui/space_nla.py
M       source/blender/editors/space_action/action_edit.c
M       source/blender/editors/space_graph/graph_edit.c
M       source/blender/editors/space_nla/nla_edit.c

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_dopesheet.py 
b/release/scripts/startup/bl_ui/space_dopesheet.py
index a866921f326..aa88fceaef7 100644
--- a/release/scripts/startup/bl_ui/space_dopesheet.py
+++ b/release/scripts/startup/bl_ui/space_dopesheet.py
@@ -668,10 +668,10 @@ class DOPESHEET_MT_snap_pie(Menu):
         layout = self.layout
         pie = layout.menu_pie()
 
-        pie.operator("action.snap", text="Current Frame").type = 'CFRA'
-        pie.operator("action.snap", text="Nearest Frame").type = 
'NEAREST_FRAME'
-        pie.operator("action.snap", text="Nearest Second").type = 
'NEAREST_SECOND'
-        pie.operator("action.snap", text="Nearest Marker").type = 
'NEAREST_MARKER'
+        pie.operator("action.snap", text="Selection to Current Frame").type = 
'CFRA'
+        pie.operator("action.snap", text="Selection to Nearest Frame").type = 
'NEAREST_FRAME'
+        pie.operator("action.snap", text="Selection to Nearest Second").type = 
'NEAREST_SECOND'
+        pie.operator("action.snap", text="Selection to Nearest Marker").type = 
'NEAREST_MARKER'
 
 
 class LayersDopeSheetPanel:
diff --git a/release/scripts/startup/bl_ui/space_nla.py 
b/release/scripts/startup/bl_ui/space_nla.py
index 4ecc4e7fdd9..d472352084c 100644
--- a/release/scripts/startup/bl_ui/space_nla.py
+++ b/release/scripts/startup/bl_ui/space_nla.py
@@ -241,10 +241,10 @@ class NLA_MT_snap_pie(Menu):
         layout = self.layout
         pie = layout.menu_pie()
 
-        pie.operator("nla.snap", text="Current Frame").type = 'CFRA'
-        pie.operator("nla.snap", text="Nearest Frame").type = 'NEAREST_FRAME'
-        pie.operator("nla.snap", text="Nearest Second").type = 'NEAREST_SECOND'
-        pie.operator("nla.snap", text="Nearest Marker").type = 'NEAREST_MARKER'
+        pie.operator("nla.snap", text="Selection to Current Frame").type = 
'CFRA'
+        pie.operator("nla.snap", text="Selection to Nearest Frame").type = 
'NEAREST_FRAME'
+        pie.operator("nla.snap", text="Selection to Nearest Second").type = 
'NEAREST_SECOND'
+        pie.operator("nla.snap", text="Selection to Nearest Marker").type = 
'NEAREST_MARKER'
 
 
 class NLA_MT_context_menu(Menu):
diff --git a/source/blender/editors/space_action/action_edit.c 
b/source/blender/editors/space_action/action_edit.c
index e14e78912d7..f058ec5546a 100644
--- a/source/blender/editors/space_action/action_edit.c
+++ b/source/blender/editors/space_action/action_edit.c
@@ -1696,23 +1696,23 @@ static const EnumPropertyItem prop_actkeys_snap_types[] 
= {
     {ACTKEYS_SNAP_CFRA,
      "CFRA",
      0,
-     "Current Frame",
+     "Selection to Current Frame",
      "Snap selected keyframes to the current frame"},
     {ACTKEYS_SNAP_NEAREST_FRAME,
      "NEAREST_FRAME",
      0,
-     "Nearest Frame",
+     "Selection to Nearest Frame",
      "Snap selected keyframes to the nearest (whole) frame (use to fix 
accidental sub-frame "
      "offsets)"},
     {ACTKEYS_SNAP_NEAREST_SECOND,
      "NEAREST_SECOND",
      0,
-     "Nearest Second",
+     "Selection to Nearest Second",
      "Snap selected keyframes to the nearest second"},
     {ACTKEYS_SNAP_NEAREST_MARKER,
      "NEAREST_MARKER",
      0,
-     "Nearest Marker",
+     "Selection to Nearest Marker",
      "Snap selected keyframes to the nearest marker"},
     {0, NULL, 0, NULL, NULL},
 };
diff --git a/source/blender/editors/space_graph/graph_edit.c 
b/source/blender/editors/space_graph/graph_edit.c
index b25a275a0ab..7fc1329df64 100644
--- a/source/blender/editors/space_graph/graph_edit.c
+++ b/source/blender/editors/space_graph/graph_edit.c
@@ -2887,28 +2887,28 @@ static const EnumPropertyItem 
prop_graphkeys_snap_types[] = {
     {GRAPHKEYS_SNAP_CFRA,
      "CFRA",
      0,
-     "Current Frame",
+     "Selection to Current Frame",
      "Snap selected keyframes to the current frame"},
     {GRAPHKEYS_SNAP_VALUE,
      "VALUE",
      0,
-     "Cursor Value",
+     "Selection to Cursor Value",
      "Set values of selected keyframes to the cursor value (Y/Horizontal 
component)"},
     {GRAPHKEYS_SNAP_NEAREST_FRAME,
      "NEAREST_FRAME",
      0,
-     "Nearest Frame",
+     "Selection to Nearest Frame",
      "Snap selected keyframes to the nearest (whole) frame (use to fix 
accidental sub-frame "
      "offsets)"},
     {GRAPHKEYS_SNAP_NEAREST_SECOND,
      "NEAREST_SECOND",
      0,
-     "Nearest Second",
+     "Selection to Nearest Second",
      "Snap selected keyframes to the nearest second"},
     {GRAPHKEYS_SNAP_NEAREST_MARKER,
      "NEAREST_MARKER",
      0,
-     "Nearest Marker",
+     "Selection to Nearest Marker",
      "Snap selected keyframes to the nearest marker"},
     {GRAPHKEYS_SNAP_HORIZONTAL,
      "HORIZONTAL",
diff --git a/source/blender/editors/space_nla/nla_edit.c 
b/source/blender/editors/space_nla/nla_edit.c
index fa27a6941ec..ed8e5ad76e9 100644
--- a/source/blender/editors/space_nla/nla_edit.c
+++ b/source/blender/editors/space_nla/nla_edit.c
@@ -2158,12 +2158,12 @@ void NLA_OT_clear_scale(wmOperatorType *ot)
 
 /* defines for snap keyframes tool */
 static const EnumPropertyItem prop_nlaedit_snap_types[] = {
-    {NLAEDIT_SNAP_CFRA, "CFRA", 0, "Current Frame", ""},
+    {NLAEDIT_SNAP_CFRA, "CFRA", 0, "Selection to Current Frame", ""},
     /* XXX as single entry? */
-    {NLAEDIT_SNAP_NEAREST_FRAME, "NEAREST_FRAME", 0, "Nearest Frame", ""},
+    {NLAEDIT_SNAP_NEAREST_FRAME, "NEAREST_FRAME", 0, "Selection to Nearest 
Frame", ""},
     /* XXX as single entry? */
-    {NLAEDIT_SNAP_NEAREST_SECOND, "NEAREST_SECOND", 0, "Nearest Second", ""},
-    {NLAEDIT_SNAP_NEAREST_MARKER, "NEAREST_MARKER", 0, "Nearest Marker", ""},
+    {NLAEDIT_SNAP_NEAREST_SECOND, "NEAREST_SECOND", 0, "Selection to Nearest 
Second", ""},
+    {NLAEDIT_SNAP_NEAREST_MARKER, "NEAREST_MARKER", 0, "Selection to Nearest 
Marker", ""},
     {0, NULL, 0, NULL, NULL},
 };

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to