Fix T45239: New depsgraph does not work with IK pole target

This commit is contained in:
Sergey Sharybin 2015-06-30 16:48:02 +02:00
parent 7039808899
commit c1d6a26842
Notes: blender-bot 2023-02-14 11:35:46 +01:00
Referenced by issue #45239, New depsgraph: IK target not working (in 'animation/IK_pole_target.blend' regression file)
1 changed files with 1 additions and 1 deletions

View File

@ -1182,7 +1182,7 @@ void DepsgraphRelationBuilder::build_ik_pose(Object *ob,
/* Pole Target */
// XXX: this should get handled as part of the constraint code
if (data->poletar != NULL) {
if ((data->tar->type == OB_ARMATURE) && (data->subtarget[0])) {
if ((data->poletar->type == OB_ARMATURE) && (data->polesubtarget[0])) {
// XXX: same armature issues - ready vs done?
ComponentKey target_key(&data->poletar->id, DEPSNODE_TYPE_BONE, data->subtarget);
add_relation(target_key, solver_key, DEPSREL_TYPE_TRANSFORM, con->name);