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.
This commit is contained in:
parent
0dfc3a3b78
commit
931b382d76
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user