Browse Source

Fix IK Calculation always using root

embarrassing and silly mistake lol
Joseph Brandenburg 6 months ago
parent
commit
d16eca21db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      link_containers.py

+ 1 - 1
link_containers.py

@@ -1124,7 +1124,7 @@ class LinkInverseKinematics(MantisLinkNode):
         
         base_ik_bone = ik_bone; i=1
         while (i<chain_length) and (base_ik_bone.parent):
-            base_ik_bone=base_ik_bone.parent
+            base_ik_bone=base_ik_bone.parent; i+=1
         return base_ik_bone
     
     # We need to do the calculation in a "full circle", meaning the pole_angle