patch [#27917] MARKER MENUS: Unification and adding "Duplicate Marker to Scene..."
[blender.git] / release / scripts / startup / bl_ui / space_graph.py
index d4b8c415a7f4fcb989004ce1c11b7ea668942bfa..b57d421dfaf44d36c0c9b26d787f9aff6ea64982 100644 (file)
@@ -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?