diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2022-01-04 18:40:07 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2022-01-09 15:41:09 +0300 |
commit | 0391f865e12d432ad06050f654a04f259361f123 (patch) | |
tree | 62afb85b00a9bc6cac2b58f483795a271534709a /rigify/rigs/limbs/front_paw.py | |
parent | 6afec05c3286cdea58ab269fb8dd1f5de011de4e (diff) |
Rigify: support separate IK and FK controls for the toe.
Currently the leg rig tries to share one control between IK and FK
modes, which looks as a nice optimization at first, but makes it
impossible to IK/FK snap correctly if the IK foot is rolled forward.
This commit adds an option to generate separate toe controls.
Diffstat (limited to 'rigify/rigs/limbs/front_paw.py')
-rw-r--r-- | rigify/rigs/limbs/front_paw.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rigify/rigs/limbs/front_paw.py b/rigify/rigs/limbs/front_paw.py index f89ca6c4..83cbbd81 100644 --- a/rigify/rigs/limbs/front_paw.py +++ b/rigify/rigs/limbs/front_paw.py @@ -55,10 +55,11 @@ class Rig(pawRig): return [self.bones.ctrl.heel] def get_ik_fk_position_chains(self): - ik_chain, fk_chain = super().get_ik_fk_position_chains() + ik_chain, tail_chain, fk_chain = super().get_ik_fk_position_chains() + assert not tail_chain if not self.use_heel2: return [*ik_chain, ik_chain[-1]], [*fk_chain, fk_chain[-1]] - return ik_chain, fk_chain + return ik_chain, tail_chain, fk_chain def get_extra_ik_controls(self): extra = [self.bones.ctrl.heel2] if self.use_heel2 else [] |