From 0e51c9014c6a1cbdfe916edf79d1ca05d796e1fd Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 3 Nov 2011 12:47:39 +0000 Subject: patch [#27917] MARKER MENUS: Unification and adding "Duplicate Marker to Scene..." from Troy Sobotka (sobotka), with edits - remove Markers from Ctrl+L menu (was out of place here and was broken from recent changes to marker operators) - further de-duplicte scripts by having all menus call the same function: marker_menu_generic(). this fixes bug [#29083] too. --- release/scripts/startup/bl_ui/space_graph.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to '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 d4b8c415a7f..b57d421dfaf 100644 --- a/release/scripts/startup/bl_ui/space_graph.py +++ b/release/scripts/startup/bl_ui/space_graph.py @@ -144,16 +144,8 @@ class GRAPH_MT_marker(Menu): def draw(self, context): layout = self.layout - #layout.operator_context = 'EXEC_REGION_WIN' - - layout.operator("marker.add", "Add Marker") - layout.operator("marker.duplicate", text="Duplicate Marker") - layout.operator("marker.delete", text="Delete Marker") - - layout.separator() - - layout.operator("marker.rename", text="Rename Marker") - layout.operator("marker.move", text="Grab/Move Marker") + from .space_time import marker_menu_generic + marker_menu_generic(layout) # TODO: pose markers for action edit mode only? -- cgit v1.2.3