Fix #29361: uv unwrap > project from view grayed out in menu.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 22 Nov 2011 12:18:15 +0000 (12:18 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 22 Nov 2011 12:18:15 +0000 (12:18 +0000)
Fix game navigation mesh panel in scene properties not showing closed by default.

release/scripts/startup/bl_ui/properties_game.py
release/scripts/startup/bl_ui/space_view3d.py

index 877b6c0893d9423b243683696a3255cf3be67644..db65b0ff669cb800dced57aeddae3e386a0ac81a 100644 (file)
@@ -408,7 +408,7 @@ class SceneButtonsPanel():
 
 class SCENE_PT_game_navmesh(SceneButtonsPanel, Panel):
     bl_label = "Navigation mesh"
-    bl_default_closed = True
+    bl_options = {'DEFAULT_CLOSED'}
     COMPAT_ENGINES = {'BLENDER_GAME'}
 
     @classmethod
index ce500b20d78b1e47097b0289af768e4365046b5a..e090b338a7dac0bef9c8743d59025c48a034c526 100644 (file)
@@ -262,6 +262,7 @@ class VIEW3D_MT_uv_map(Menu):
 
         layout.separator()
 
+        layout.operator_context = 'EXEC_REGION_WIN'
         layout.operator("uv.project_from_view")
         layout.operator("uv.project_from_view", text="Project from View (Bounds)").scale_to_bounds = True