Rigify: minor tweaks.

- Clear the IK toe control animation in the relevant operator.
- Allow changing the euler order of finger master control via metarig.
This commit is contained in:
Alexander Gavrilov 2022-01-14 21:37:30 +03:00
parent e54b9d2a4d
commit 17844d2851
3 changed files with 4 additions and 2 deletions

View File

@ -237,7 +237,7 @@ class Rig(BaseLimbRig):
@stage.configure_bones
def configure_ik_toe_control(self):
if self.use_ik_toe:
self.copy_bone_properties(self.bones.org.main[3], self.bones.ctrl.ik_toe)
self.copy_bone_properties(self.bones.org.main[3], self.bones.ctrl.ik_toe, props=False)
@stage.generate_widgets
def make_ik_toe_control_widget(self):

View File

@ -1128,7 +1128,7 @@ def add_limb_snap_ik_to_fk(panel, *, master=None, fk_bones=[], ik_bones=[], tail
add_fk_ik_snap_buttons(
panel, 'pose.rigify_limb_ik2fk_{rig_id}', 'pose.rigify_limb_ik2fk_bake_{rig_id}',
label='IK->FK', rig_name=rig_name, properties=op_props,
clear_bones=ik_ctrl_bones + ik_extra_ctrls,
clear_bones=ik_ctrl_bones + tail_bones + ik_extra_ctrls,
)
#########################

View File

@ -69,6 +69,8 @@ class Rig(SimpleChainRig):
def configure_master_control(self):
master = self.bones.ctrl.master
self.copy_bone_properties(self.bones.org[0], master, props=False, widget=False)
bone = self.get_bone(master)
bone.lock_scale = True, False, True