From 429ec5eea3b44f57bf9400237d2a772e4808c8cf Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Fri, 5 Jan 2007 08:16:23 +0000 Subject: [PATCH] Bugfix #5212: IK Locks/Limits were applied to bones in IK-chains even when the IK constraint for the chain had an influence value of 0. I've added a check to see if the ik-constraint found has any influence over a chain, before the chain is made available for ik-solving. --- source/blender/blenkernel/intern/armature.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c index b10018a5e73..f246eaa8757 100644 --- a/source/blender/blenkernel/intern/armature.c +++ b/source/blender/blenkernel/intern/armature.c @@ -1170,6 +1170,7 @@ static void initialize_posetree(struct Object *ob, bPoseChannel *pchan_tip) if(data->flag & CONSTRAINT_IK_AUTO); else { if(con->flag & CONSTRAINT_DISABLE) return; /* checked in editconstraint.c */ + if(con->enforce == 0.0f) return; if(data->tar==NULL) return; if(data->tar->type==OB_ARMATURE && data->subtarget[0]==0) return; }