diff options
author | Lucio Rossi <lucio.rossi75@gmail.com> | 2017-12-05 15:26:36 +0300 |
---|---|---|
committer | Lucio Rossi <lucio.rossi75@gmail.com> | 2017-12-05 15:27:42 +0300 |
commit | 1473e69bb8d2db24e7f311c4c6a98e0a23a59cde (patch) | |
tree | e487b865f58773a4e6d8dae9a4cee048828b17a8 /rigify/rigs/limbs/ui.py | |
parent | ff687ae6813e83002882632429c1abdf64060d57 (diff) |
fix T53355: missing Rot2Pole switch operator when Rigify is disabled
Diffstat (limited to 'rigify/rigs/limbs/ui.py')
-rw-r--r-- | rigify/rigs/limbs/ui.py | 22 |
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: |