[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22975] branches/blender2.5/blender/ release/ui/space_view3d.py: 2.5 - Bugfixes for Armature operators

Joshua Leung aligorith at gmail.com
Fri Sep 4 02:18:45 CEST 2009


Revision: 22975
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22975
Author:   aligorith
Date:     2009-09-04 02:18:44 +0200 (Fri, 04 Sep 2009)

Log Message:
-----------
2.5 - Bugfixes for Armature operators

AutoSide names now gets called correctly from menus. 

However, the toggle bone settings operators aren't. I can't seem to get them to call the invoke again after making autoside call exec...

Modified Paths:
--------------
    branches/blender2.5/blender/release/ui/space_view3d.py

Modified: branches/blender2.5/blender/release/ui/space_view3d.py
===================================================================
--- branches/blender2.5/blender/release/ui/space_view3d.py	2009-09-03 22:37:09 UTC (rev 22974)
+++ branches/blender2.5/blender/release/ui/space_view3d.py	2009-09-04 00:18:44 UTC (rev 22975)
@@ -622,6 +622,7 @@
 		
 		layout.itemS()
 		
+		layout.operator_context = "EXEC_AREA"
 		layout.item_enumO("pose.autoside_names", "axis", 'XAXIS', text="AutoName Left/Right")
 		layout.item_enumO("pose.autoside_names", "axis", 'YAXIS', text="AutoName Front/Back")
 		layout.item_enumO("pose.autoside_names", "axis", 'ZAXIS', text="AutoName Top/Bottom")
@@ -630,6 +631,7 @@
 		
 		layout.itemS()
 		
+		layout.operator_context = "INVOKE_AREA"
 		layout.itemO("pose.armature_layers", text="Change Armature Layers...")
 		layout.itemO("pose.bone_layers", text="Change Bone Layers...")
 		
@@ -1068,14 +1070,16 @@
 		layout.itemO("armature.subdivide_multi", text="Subdivide")
 		
 		layout.itemS()
-
+		
+		layout.operator_context = "EXEC_AREA"
 		layout.item_enumO("armature.autoside_names", "type", 'XAXIS', text="AutoName Left/Right")
 		layout.item_enumO("armature.autoside_names", "type", 'YAXIS', text="AutoName Front/Back")
 		layout.item_enumO("armature.autoside_names", "type", 'ZAXIS', text="AutoName Top/Bottom")
 		layout.itemO("armature.flip_names")
 
 		layout.itemS()
-
+		
+		layout.operator_context = "INVOKE_DEFAULT"
 		layout.itemO("armature.armature_layers")
 		layout.itemO("armature.bone_layers")
 
@@ -1084,7 +1088,7 @@
 		layout.itemM("VIEW3D_MT_edit_ARMATURE_parent")
 
 		layout.itemS()
-
+		
 		layout.item_menu_enumO("armature.flags_set", "mode", text="Bone Settings")
 
 class VIEW3D_MT_edit_ARMATURE_parent(bpy.types.Menu):





More information about the Bf-blender-cvs mailing list