diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-10-19 15:01:51 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-10-19 15:02:53 +0300 |
commit | 477d983c2e8ab298cbf638d5aadd77fad9c2f677 (patch) | |
tree | 0ea3865255855f00a616a922fb94568fdf343375 /release | |
parent | e3c76f793724cd7e0ade4dc610b104fb9996901c (diff) |
Animation: Improve labels on Snap menu in graph editor
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.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_graph.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/release/scripts/startup/bl_ui/space_graph.py b/release/scripts/startup/bl_ui/space_graph.py index 212a3d5ea2b..1bf7465e54c 100644 --- a/release/scripts/startup/bl_ui/space_graph.py +++ b/release/scripts/startup/bl_ui/space_graph.py @@ -324,11 +324,11 @@ class GRAPH_MT_key_snap(Menu): def draw(self, _context): layout = self.layout - layout.operator("graph.snap", text="Current Frame").type = 'CFRA' - layout.operator("graph.snap", text="Cursor Value").type = 'VALUE' - layout.operator("graph.snap", text="Nearest Frame").type = 'NEAREST_FRAME' - layout.operator("graph.snap", text="Nearest Second").type = 'NEAREST_SECOND' - layout.operator("graph.snap", text="Nearest Marker").type = 'NEAREST_MARKER' + layout.operator("graph.snap", text="Selection to Current Frame").type = 'CFRA' + layout.operator("graph.snap", text="Selection to Cursor Value").type = 'VALUE' + layout.operator("graph.snap", text="Selection to Nearest Frame").type = 'NEAREST_FRAME' + layout.operator("graph.snap", text="Selection to Nearest Second").type = 'NEAREST_SECOND' + layout.operator("graph.snap", text="Selection to Nearest Marker").type = 'NEAREST_MARKER' layout.operator("graph.snap", text="Flatten Handles").type = 'HORIZONTAL' layout.separator() layout.operator("graph.frame_jump", text="Cursor to Selection") @@ -399,11 +399,11 @@ class GRAPH_MT_snap_pie(Menu): layout = self.layout pie = layout.menu_pie() - pie.operator("graph.snap", text="Current Frame").type = 'CFRA' - pie.operator("graph.snap", text="Cursor Value").type = 'VALUE' - pie.operator("graph.snap", text="Nearest Frame").type = 'NEAREST_FRAME' - pie.operator("graph.snap", text="Nearest Second").type = 'NEAREST_SECOND' - pie.operator("graph.snap", text="Nearest Marker").type = 'NEAREST_MARKER' + pie.operator("graph.snap", text="Selection to Current Frame").type = 'CFRA' + pie.operator("graph.snap", text="Selection to Cursor Value").type = 'VALUE' + pie.operator("graph.snap", text="Selection to Nearest Frame").type = 'NEAREST_FRAME' + pie.operator("graph.snap", text="Selection to Nearest Second").type = 'NEAREST_SECOND' + pie.operator("graph.snap", text="Selection to Nearest Marker").type = 'NEAREST_MARKER' pie.operator("graph.snap", text="Flatten Handles").type = 'HORIZONTAL' pie.operator("graph.frame_jump", text="Cursor to Selection") pie.operator("graph.snap_cursor_value", text="Cursor Value to Selection") |