Fix T52209: New Depsgraph - animated follow curve constraint sometimes freaks out when the curve has a parent
This commit is contained in:
parent
c9d653e560
commit
0bee126977
|
@ -733,8 +733,10 @@ void DepsgraphRelationBuilder::build_constraints(Scene *scene, ID *id, eDepsNode
|
|||
else if (ELEM(con->type, CONSTRAINT_TYPE_FOLLOWPATH, CONSTRAINT_TYPE_CLAMPTO)) {
|
||||
/* these constraints require path geometry data... */
|
||||
ComponentKey target_key(&ct->tar->id, DEG_NODE_TYPE_GEOMETRY);
|
||||
add_relation(target_key, constraint_op_key, cti->name); // XXX: type = geom_transform
|
||||
// TODO: path dependency
|
||||
add_relation(target_key, constraint_op_key, cti->name);
|
||||
ComponentKey target_transform_key(&ct->tar->id,
|
||||
DEG_NODE_TYPE_TRANSFORM);
|
||||
add_relation(target_transform_key, constraint_op_key, cti->name);
|
||||
}
|
||||
else if ((ct->tar->type == OB_ARMATURE) && (ct->subtarget[0])) {
|
||||
/* bone */
|
||||
|
|
Loading…
Reference in New Issue