patch from William
[blender-staging.git] / release / ui / space_view3d.py
index 77a25c0161e92c87417109dfac10d8de7c3e5a61..e28fdd6641fdc67cfde9842be9720cd2e718996b 100644 (file)
@@ -8,19 +8,19 @@ class VIEW3D_MT_view_navigation(bpy.types.Menu):
        def draw(self, context):
                layout = self.layout
 
-               # layout.itemO("VIEW3D_OT_view_fly_mode")
+               # layout.itemO("view3d.view_fly_mode")
                # layout.itemS()
                
-               layout.items_enumO("VIEW3D_OT_view_orbit", "type")
+               layout.items_enumO("view3d.view_orbit", "type")
                
                layout.itemS()
                
-               layout.items_enumO("VIEW3D_OT_view_pan", "type")
+               layout.items_enumO("view3d.view_pan", "type")
                
                layout.itemS()
                
-               layout.item_floatO("VIEW3D_OT_zoom", "delta", 1.0, text="Zoom In")
-               layout.item_floatO("VIEW3D_OT_zoom", "delta", -1.0, text="Zoom Out")
+               layout.item_floatO("view3d.zoom", "delta", 1.0, text="Zoom In")
+               layout.item_floatO("view3d.zoom", "delta", -1.0, text="Zoom Out")
 
 class VIEW3D_MT_view(bpy.types.Menu):
        __space_type__ = "VIEW_3D"
@@ -29,30 +29,30 @@ class VIEW3D_MT_view(bpy.types.Menu):
        def draw(self, context):
                layout = self.layout
 
-               layout.itemO("VIEW3D_OT_properties", icon="ICON_MENU_PANEL")
-               layout.itemO("VIEW3D_OT_toolbar", icon="ICON_MENU_PANEL")
+               layout.itemO("view3d.properties", icon="ICON_MENU_PANEL")
+               layout.itemO("view3d.toolbar", icon="ICON_MENU_PANEL")
                
                layout.itemS()
                
-               layout.item_enumO("VIEW3D_OT_viewnumpad", "type", "CAMERA")
-               layout.item_enumO("VIEW3D_OT_viewnumpad", "type", "TOP")
-               layout.item_enumO("VIEW3D_OT_viewnumpad", "type", "FRONT")
-               layout.item_enumO("VIEW3D_OT_viewnumpad", "type", "RIGHT")
+               layout.item_enumO("view3d.viewnumpad", "type", "CAMERA")
+               layout.item_enumO("view3d.viewnumpad", "type", "TOP")
+               layout.item_enumO("view3d.viewnumpad", "type", "FRONT")
+               layout.item_enumO("view3d.viewnumpad", "type", "RIGHT")
                
                # layout.itemM("VIEW3D_MT_view_cameras", text="Cameras")
                
                layout.itemS()
 
-               layout.itemO("VIEW3D_OT_view_persportho")
+               layout.itemO("view3d.view_persportho")
                
                layout.itemS()
                
-               # layout.itemO("VIEW3D_OT_view_show_all_layers")
+               # layout.itemO("view3d.view_show_all_layers")
                
                # layout.itemS()
                
-               # layout.itemO("VIEW3D_OT_view_local_view")
-               # layout.itemO("VIEW3D_OT_view_global_view")
+               # layout.itemO("view3d.view_local_view")
+               # layout.itemO("view3d.view_global_view")
                
                # layout.itemS()
                
@@ -63,17 +63,17 @@ class VIEW3D_MT_view(bpy.types.Menu):
 
                layout.operator_context = "INVOKE_REGION_WIN"
 
-               layout.itemO("VIEW3D_OT_clip_border")
-               layout.itemO("VIEW3D_OT_zoom_border")
+               layout.itemO("view3d.clip_border")
+               layout.itemO("view3d.zoom_border")
                
                layout.itemS()
                
-               layout.itemO("VIEW3D_OT_view_center")
-               layout.itemO("VIEW3D_OT_view_all")
+               layout.itemO("view3d.view_center")
+               layout.itemO("view3d.view_all")
                
                layout.itemS()
                
-               layout.itemO("SCREEN_OT_screen_full_area")
+               layout.itemO("screen.screen_full_area")
 
 class VIEW3D_HT_header(bpy.types.Header):
        __space_type__ = "VIEW_3D"
@@ -171,6 +171,7 @@ class VIEW3D_PT_background_image(bpy.types.Panel):
                col.itemR(bg, "y_offset", text="Y")
 
 
+
 bpy.types.register(VIEW3D_MT_view_navigation)
 bpy.types.register(VIEW3D_MT_view)
 bpy.types.register(VIEW3D_HT_header)
@@ -178,4 +179,3 @@ bpy.types.register(VIEW3D_PT_3dview_properties)
 bpy.types.register(VIEW3D_PT_3dview_display)
 bpy.types.register(VIEW3D_PT_background_image)
 
-