diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-10-25 14:10:43 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-10-25 14:12:28 +0300 |
commit | 2d023ea49fc7cffb22d49c7dc796800dc9bf6d17 (patch) | |
tree | 51e65ab21057c9d268d660b7cd6546803d81fd7f /rigify | |
parent | 5716f119e348c61f5da1bc5513029591fc381b47 (diff) |
Fix T71083: wrong foot widget position with custom pivot enabled.
Diffstat (limited to 'rigify')
-rw-r--r-- | rigify/rigs/limbs/leg.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rigify/rigs/limbs/leg.py b/rigify/rigs/limbs/leg.py index 99610a6a..b409d009 100644 --- a/rigify/rigs/limbs/leg.py +++ b/rigify/rigs/limbs/leg.py @@ -151,8 +151,10 @@ class Rig(BaseLimbRig): obj = create_foot_widget(self.obj, ctrl) if self.pivot_type != 'TOE': + ctrl = self.get_bone(ctrl) org = self.get_bone(self.bones.org.main[2]) - adjust_widget_transform_mesh(obj, Matrix.Translation(org.vector)) + offset = org.tail - (ctrl.custom_shape_transform or ctrl).head + adjust_widget_transform_mesh(obj, Matrix.Translation(offset)) #################################################### # IK pivot controls |