Depsgraph: Fix wrong relation from IK solver to pole target
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 10 Nov 2016 14:46:22 +0000 (15:46 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 10 Nov 2016 14:46:22 +0000 (15:46 +0100)
Copy paste error...

How to avoid those?

source/blender/depsgraph/intern/builder/deg_builder_relations.cc

index 2f3c94802e7aeb89672405d09544c9a0d15c73f6..b2d7de071f835485672084c101ae47d15a8af3b0 100644 (file)
@@ -1416,7 +1416,7 @@ void DepsgraphRelationBuilder::build_ik_pose(Object *ob,
        if (data->poletar != NULL) {
                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);
+                       ComponentKey target_key(&data->poletar->id, DEPSNODE_TYPE_BONE, data->polesubtarget);
                        add_relation(target_key, solver_key, DEPSREL_TYPE_TRANSFORM, con->name);
                }
                else if (ELEM(data->poletar->type, OB_MESH, OB_LATTICE) && (data->subtarget[0])) {