diff options
Diffstat (limited to 'rigify/rigs/biped/leg/fk.py')
-rw-r--r-- | rigify/rigs/biped/leg/fk.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rigify/rigs/biped/leg/fk.py b/rigify/rigs/biped/leg/fk.py index 628798f8..f32fc36d 100644 --- a/rigify/rigs/biped/leg/fk.py +++ b/rigify/rigs/biped/leg/fk.py @@ -21,7 +21,7 @@ import math from mathutils import Vector from rigify.utils import MetarigError from rigify.utils import copy_bone, flip_bone, put_bone -from rigify.utils import connected_children_names +from rigify.utils import connected_children_names, has_connected_children from rigify.utils import strip_org, make_mechanism_name, make_deformer_name from rigify.utils import get_layers from rigify.utils import create_widget, create_limb_widget @@ -54,10 +54,10 @@ class Rig: heel = None for b in self.obj.data.bones[leg_bones[1]].children: if b.use_connect == True: - if len(b.children) == 0: - heel = b.name - else: + if len(b.children) >= 1 and has_connected_children(b): foot = b.name + else: + heel = b.name if foot == None or heel == None: raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type." % (strip_org(bone))) |