diff options
author | Chris Want <cwant@ualberta.ca> | 2004-05-31 17:21:33 +0400 |
---|---|---|
committer | Chris Want <cwant@ualberta.ca> | 2004-05-31 17:21:33 +0400 |
commit | 931b382d769015940be9b867fb425802c42257a7 (patch) | |
tree | b37977286dca37cdc86fe2241a724803de0a071e /source/blender/src/editconstraint.c | |
parent | 0dfc3a3b785ca5ed39a48e0d62a0c472167c5506 (diff) |
Fix for the IK Assertion bug when the IK constraint on a bone
points to the armature that owns the bone and the subtarget
bone for the constraint is invalid.
Thanks to Stephane Soppera for tracking this one down.
Diffstat (limited to 'source/blender/src/editconstraint.c')
-rw-r--r-- | source/blender/src/editconstraint.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/src/editconstraint.c b/source/blender/src/editconstraint.c index 571eb2b8eb4..be40b84c403 100644 --- a/source/blender/src/editconstraint.c +++ b/source/blender/src/editconstraint.c @@ -473,6 +473,15 @@ static short detect_constraint_loop (Object *owner, const char* substring, int d data->tar = NULL; break; } + + if ( (data->tar == owner) && + (!get_named_bone(get_armature(owner), + data->subtarget))) { + curcon->flag |= CONSTRAINT_DISABLE; + result = 1; + break; + } + if (add_constraint_element (data->tar, data->subtarget, owner, substring)){ curcon->flag |= CONSTRAINT_DISABLE; |