Commit: 477d983c2e8ab298cbf638d5aadd77fad9c2f677 Author: Sybren A. Stüvel Date: Mon Oct 19 14:01:51 2020 +0200 Branches: master https://developer.blender.org/rB477d983c2e8ab298cbf638d5aadd77fad9c2f677
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. =================================================================== M release/scripts/startup/bl_ui/space_graph.py =================================================================== 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") _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs