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:
authorAlexander Gavrilov <angavrilov@gmail.com>2020-11-17 14:44:04 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2020-11-17 14:44:04 +0300
commit26088d766e55bd4b18be812d60aa20f5316f8ab8 (patch)
tree2cfced4e0392e3fbbdd5a78fefe59a3f244ec45a /rigify/rigs/spines/super_head.py
parent1bab44a79366a65f31b5047399744ea3b43871fc (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/super_head.py')
-rw-r--r--rigify/rigs/spines/super_head.py3
1 files changed, 1 insertions, 2 deletions
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