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
path: root/rigify
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2019-10-25 14:10:43 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2019-10-25 14:12:28 +0300
commit2d023ea49fc7cffb22d49c7dc796800dc9bf6d17 (patch)
tree51e65ab21057c9d268d660b7cd6546803d81fd7f /rigify
parent5716f119e348c61f5da1bc5513029591fc381b47 (diff)
Fix T71083: wrong foot widget position with custom pivot enabled.
Diffstat (limited to 'rigify')
-rw-r--r--rigify/rigs/limbs/leg.py4
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