Revision: 24909
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24909
Author:   broken
Date:     2009-11-26 06:57:34 +0100 (Thu, 26 Nov 2009)

Log Message:
-----------
Fix for [#20028] adding objects such as cameras in local view(/) doesn't work

Was getting the wrong operator context, so there was no view3d available

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/space_info.py

Modified: trunk/blender/release/scripts/ui/space_info.py
===================================================================
--- trunk/blender/release/scripts/ui/space_info.py      2009-11-26 05:01:28 UTC 
(rev 24908)
+++ trunk/blender/release/scripts/ui/space_info.py      2009-11-26 05:57:34 UTC 
(rev 24909)
@@ -179,7 +179,7 @@
 
         layout.operator_context = 'EXEC_SCREEN'
 
-        # layout.operator_menu_enum("object.mesh_add", "type", text="Mesh", 
icon='ICON_OUTLINER_OB_MESH')
+        #layout.operator_menu_enum("object.mesh_add", "type", text="Mesh", 
icon='ICON_OUTLINER_OB_MESH')
         layout.menu("INFO_MT_mesh_add", icon='ICON_OUTLINER_OB_MESH')
 
         layout.operator_menu_enum("object.curve_add", "type", text="Curve", 
icon='ICON_OUTLINER_OB_CURVE')
@@ -189,7 +189,7 @@
 
         layout.separator()
 
-        layout.operator_context = 'INVOKE_SCREEN'
+        layout.operator_context = 'INVOKE_REGION_WIN'
 
         layout.operator("object.armature_add", text="Armature", 
icon='ICON_OUTLINER_OB_ARMATURE')
         layout.operator("object.add", text="Lattice", 
icon='ICON_OUTLINER_OB_LATTICE').type = 'LATTICE'


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to