Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2011-01-06 07:47:57 +0300
committerJoshua Leung <aligorith@gmail.com>2011-01-06 07:47:57 +0300
commitaafd32ab98c05a0bcd1916a2f02713490588e084 (patch)
treecc3e13c8abb1554650145da6203163ed33af1e7e /release/scripts/ui/space_dopesheet.py
parentbba20eb5ae5e20a1ce4dcf74fa50bf6971315423 (diff)
Added back "Marker" menu to all animation editors.
Issues: - It looks a bit crowded though, so perhaps we could do without, and just leave it for the TimeLine only? - Due to the way the invoke() testing works, the rename operator called from the menu currently fails. Will need to experiment more with execution options to find a workaround.
Diffstat (limited to 'release/scripts/ui/space_dopesheet.py')
-rw-r--r--release/scripts/ui/space_dopesheet.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/release/scripts/ui/space_dopesheet.py b/release/scripts/ui/space_dopesheet.py
index ce670511ba4..b6d1185d5db 100644
--- a/release/scripts/ui/space_dopesheet.py
+++ b/release/scripts/ui/space_dopesheet.py
@@ -87,6 +87,7 @@ class DOPESHEET_HT_header(bpy.types.Header):
sub.menu("DOPESHEET_MT_view")
sub.menu("DOPESHEET_MT_select")
+ sub.menu("DOPESHEET_MT_marker")
if st.mode == 'DOPESHEET' or (st.mode == 'ACTION' and st.action != None):
sub.menu("DOPESHEET_MT_channel")
@@ -178,6 +179,25 @@ class DOPESHEET_MT_select(bpy.types.Menu):
layout.separator()
layout.operator("action.select_linked")
+class DOPESHEET_MT_marker(bpy.types.Menu):
+ bl_label = "Marker"
+
+ def draw(self, context):
+ layout = self.layout
+
+ #layout.operator_context = 'EXEC_REGION_WIN'
+
+ layout.column()
+ 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")
+
+ # TODO: pose markers for action edit mode only?
class DOPESHEET_MT_channel(bpy.types.Menu):
bl_label = "Channel"