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/spine_rigs.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/spine_rigs.py')
-rw-r--r--rigify/rigs/spines/spine_rigs.py3
1 files changed, 1 insertions, 2 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):