From 477d983c2e8ab298cbf638d5aadd77fad9c2f677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 19 Oct 2020 14:01:51 +0200 Subject: Animation: Improve labels on Snap menu in graph editor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- release/scripts/startup/bl_ui/space_graph.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'release') 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") -- cgit v1.2.3