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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucio Rossi <lucio.rossi75@gmail.com>2017-12-05 15:26:36 +0300
committerLucio Rossi <lucio.rossi75@gmail.com>2017-12-05 15:27:42 +0300
commit1473e69bb8d2db24e7f311c4c6a98e0a23a59cde (patch)
treee487b865f58773a4e6d8dae9a4cee048828b17a8 /rigify/rigs
parentff687ae6813e83002882632429c1abdf64060d57 (diff)
fix T53355: missing Rot2Pole switch operator when Rigify is disabled
Diffstat (limited to 'rigify/rigs')
-rw-r--r--rigify/rigs/limbs/ui.py22
1 files changed, 14 insertions, 8 deletions
diff --git a/rigify/rigs/limbs/ui.py b/rigify/rigs/limbs/ui.py
index f04eb891..952fbca4 100644
--- a/rigify/rigs/limbs/ui.py
+++ b/rigify/rigs/limbs/ui.py
@@ -26,11 +26,14 @@ if is_selected( controls ):
props.hand_ik = controls[4]
props.pole = pole
props.main_parent = parent
- props = layout.operator("rigify.rotation_pole", text="Switch Rotation-Pole")
+ props = layout.operator("pose.rigify_rot2pole_" + rig_id, text="Switch Rotation-Pole")
props.bone_name = controls[1]
- props.window = "CURRENT"
- props.toggle = True
- props.bake = False
+ props.limb_type = "arm"
+ props.controls = str(controls)
+ props.ik_ctrl = str(ik_ctrl)
+ props.fk_ctrl = str(fk_ctrl)
+ props.parent = str(parent)
+ props.pole = str(pole)
# BBone rubber hose on each Respective Tweak
@@ -81,11 +84,14 @@ if is_selected( controls ):
props.footroll = controls[5]
props.mfoot_ik = ik_ctrl[2]
props.main_parent = parent
- props = layout.operator("rigify.rotation_pole", text="Toggle Rotation and Pole")
+ props = layout.operator("pose.rigify_rot2pole_" + rig_id, text="Toggle Rotation and Pole")
props.bone_name = controls[1]
- props.window = "CURRENT"
- props.toggle = True
- props.bake = False
+ props.limb_type = "leg"
+ props.controls = str(controls)
+ props.ik_ctrl = str(ik_ctrl)
+ props.fk_ctrl = str(fk_ctrl)
+ props.parent = str(parent)
+ props.pole = str(pole)
# BBone rubber hose on each Respective Tweak
for t in tweaks: