Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-09-04 04:18:44 +0400
committerJoshua Leung <aligorith@gmail.com>2009-09-04 04:18:44 +0400
commit993037d3cb52aa438096215e9d120e6f3d95205b (patch)
tree11abd8672c8ff599db0a85d3219da3b1ed1dd0fc /release/ui
parent02f951c3a05f6586f12d129c70adffd8315ec3b7 (diff)
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...
Diffstat (limited to 'release/ui')
-rw-r--r--release/ui/space_view3d.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/release/ui/space_view3d.py b/release/ui/space_view3d.py
index 1d7ea280222..ae1edc0295b 100644
--- a/release/ui/space_view3d.py
+++ b/release/ui/space_view3d.py
@@ -622,6 +622,7 @@ class VIEW3D_MT_POSE(bpy.types.Menu):
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 @@ class VIEW3D_MT_POSE(bpy.types.Menu):
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 @@ class VIEW3D_MT_edit_ARMATURE(bpy.types.Menu):
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 @@ class VIEW3D_MT_edit_ARMATURE(bpy.types.Menu):
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):