[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51213] trunk/blender/release/scripts/ startup/bl_ui/space_clip.py: Motion Tracking; expose View All and Center to Current Frame to View menu of graph view

Sergey Sharybin sergey.vfx at gmail.com
Tue Oct 9 12:33:24 CEST 2012


Revision: 51213
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51213
Author:   nazgul
Date:     2012-10-09 10:33:24 +0000 (Tue, 09 Oct 2012)
Log Message:
-----------
Motion Tracking; expose View All and Center to Current Frame to View menu of graph view

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/space_clip.py

Modified: trunk/blender/release/scripts/startup/bl_ui/space_clip.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_clip.py	2012-10-09 10:33:18 UTC (rev 51212)
+++ trunk/blender/release/scripts/startup/bl_ui/space_clip.py	2012-10-09 10:33:24 UTC (rev 51213)
@@ -891,6 +891,12 @@
                 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()
 




More information about the Bf-blender-cvs mailing list