Motion Tracking; expose View All and Center to Current Frame to View menu of graph...
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 9 Oct 2012 10:33:24 +0000 (10:33 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 9 Oct 2012 10:33:24 +0000 (10:33 +0000)
release/scripts/startup/bl_ui/space_clip.py

index 17dd1c9cdab4c02c4b15ebb6272a52e4f026455d..f7b9f59b066cc34dbcc9e9aed5eee6dcfce5016a 100644 (file)
@@ -891,6 +891,12 @@ class CLIP_MT_view(Menu):
                 layout.operator("clip.view_zoom_ratio",
                                 text=text).ratio = a / b
         else:
+            if sc.view == 'GRAPH':
+                layout.operator_context = 'INVOKE_REGION_PREVIEW'
+                layout.operator("clip.graph_center_current_frame")
+                layout.operator("clip.graph_view_all")
+                layout.operator_context = 'INVOKE_DEFAULT'
+
             layout.prop(sc, "show_seconds")
             layout.separator()