[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35915] trunk/blender/release/scripts/ startup/bl_ui/space_view3d.py: use poppups for python UV unwrap operators ( since they are too slow to be realtime).

Campbell Barton ideasman42 at gmail.com
Thu Mar 31 10:46:42 CEST 2011


Revision: 35915
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35915
Author:   campbellbarton
Date:     2011-03-31 08:46:41 +0000 (Thu, 31 Mar 2011)
Log Message:
-----------
use poppups for python UV unwrap operators (since they are too slow to be realtime). this change was lost when moving the menu items about.

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

Modified: trunk/blender/release/scripts/startup/bl_ui/space_view3d.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_view3d.py	2011-03-31 05:20:48 UTC (rev 35914)
+++ trunk/blender/release/scripts/startup/bl_ui/space_view3d.py	2011-03-31 08:46:41 UTC (rev 35915)
@@ -240,12 +240,15 @@
         layout = self.layout
 
         layout.operator("uv.unwrap")
+
+        layout.operator_context = 'INVOKE_DEFAULT'
         layout.operator("uv.smart_project")
         layout.operator("uv.lightmap_pack")
         layout.operator("uv.follow_active_quads")
 
         layout.separator()
 
+        layout.operator_context = 'EXEC_DEFAULT'
         layout.operator("uv.cube_project")
         layout.operator("uv.cylinder_project")
         layout.operator("uv.sphere_project")




More information about the Bf-blender-cvs mailing list