diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2020-11-17 14:44:04 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2020-11-17 14:44:04 +0300 |
commit | 26088d766e55bd4b18be812d60aa20f5316f8ab8 (patch) | |
tree | 2cfced4e0392e3fbbdd5a78fefe59a3f244ec45a /rigify/rigs/spines | |
parent | 1bab44a79366a65f31b5047399744ea3b43871fc (diff) |
Rigify: replace the Damped Track + Stretch To idiom with the Swing mode.
It has been long enough since 2.82 when Swing was added to use this.
Diffstat (limited to 'rigify/rigs/spines')
-rw-r--r-- | rigify/rigs/spines/spine_rigs.py | 3 | ||||
-rw-r--r-- | rigify/rigs/spines/super_head.py | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/rigify/rigs/spines/spine_rigs.py b/rigify/rigs/spines/spine_rigs.py index fa5babf3..3c8b8223 100644 --- a/rigify/rigs/spines/spine_rigs.py +++ b/rigify/rigs/spines/spine_rigs.py @@ -163,8 +163,7 @@ class BaseSpineRig(TweakChainRig): def rig_deform_bone(self, i, deform, tweak, next_tweak): self.make_constraint(deform, 'COPY_TRANSFORMS', tweak) if next_tweak: - self.make_constraint(deform, 'DAMPED_TRACK', next_tweak) - self.make_constraint(deform, 'STRETCH_TO', next_tweak) + self.make_constraint(deform, 'STRETCH_TO', next_tweak, keep_axis='SWING_Y') @stage.configure_bones def configure_bbone_chain(self): diff --git a/rigify/rigs/spines/super_head.py b/rigify/rigs/spines/super_head.py index eb19c304..f35e122c 100644 --- a/rigify/rigs/spines/super_head.py +++ b/rigify/rigs/spines/super_head.py @@ -211,8 +211,7 @@ class Rig(BaseHeadTailRig): self.rig_mch_stretch_bone(self.bones.mch.stretch, self.bones.ctrl.head) def rig_mch_stretch_bone(self, mch, head): - self.make_constraint(mch, 'DAMPED_TRACK', head) - self.make_constraint(mch, 'STRETCH_TO', head) + self.make_constraint(mch, 'STRETCH_TO', head, keep_axis='SWING_Y') #################################################### # MCH IK chain for the long neck |