Pole Target for IK
================== This adds an extra target to the IK solver constraint to define the roll of the IK chain. http://www.blender.org/development/current-projects/changes-since-244/inverse-kinematics/ Also fixes a crashes using ctrl+I to set an IK constraint on a bone due to the recent constraints refactor.
This commit is contained in:
@@ -1416,7 +1416,7 @@ void make_parent(void)
|
||||
|
||||
add_constraint_to_object(con, base->object);
|
||||
|
||||
get_constraint_target_matrix(con, CONSTRAINT_OBTYPE_OBJECT, NULL, cmat, G.scene->r.cfra - base->object->sf);
|
||||
get_constraint_target_matrix(con, 0, CONSTRAINT_OBTYPE_OBJECT, NULL, cmat, G.scene->r.cfra - base->object->sf);
|
||||
VecSubf(vec, base->object->obmat[3], cmat[3]);
|
||||
|
||||
base->object->loc[0] = vec[0];
|
||||
|
||||
Reference in New Issue
Block a user