Commit of Patch [#19711] Add Menu Item: View3d -> View -> Show All Layers
authorThomas Dinges <blender@dingto.org>
Fri, 30 Oct 2009 21:56:09 +0000 (21:56 +0000)
committerThomas Dinges <blender@dingto.org>
Fri, 30 Oct 2009 21:56:09 +0000 (21:56 +0000)
by Jeff Doyle (nfz). Thanks!

This adds:
* "Show All Layers" to the View3d -> View menu
* "Center Cursor and View All" and "Align
Active Camera to View" to the align view submenu.

release/scripts/ui/space_view3d.py

index 68c2837..5472e7c 100644 (file)
@@ -108,6 +108,10 @@ class VIEW3D_MT_view(bpy.types.Menu):
                layout.itemO("view3d.clip_border", text="Clipping Border...")
                layout.itemO("view3d.zoom_border", text="Zoom Border...")
                
+               layout.itemS()
+
+               layout.item_intO("view3d.layers", "nr", 0, text="Show All Layers")
+
                layout.itemS()
                
                layout.itemO("view3d.localview", text="View Global/Local")
@@ -146,6 +150,8 @@ class VIEW3D_MT_view_align(bpy.types.Menu):
        def draw(self, context):
                layout = self.layout
                
+               layout.item_booleanO("view3d.view_all", "center", True, text="Center Cursor and View All")
+               layout.itemO("view3d.camera_to_view", text="Align Active Camera to View")
                layout.itemO("view3d.view_center")
                
 class VIEW3D_MT_view_cameras(bpy.types.Menu):