Fix T52255: New Depsgraph - Constraint and Drivers not working together when the driver references itself
This commit is contained in:
@@ -1091,6 +1091,13 @@ void DepsgraphRelationBuilder::build_driver(ID *id, FCurve *fcu)
|
||||
}
|
||||
else if (dtar->flag & DTAR_FLAG_STRUCT_REF) {
|
||||
/* Get node associated with the object's transforms. */
|
||||
if (dtar->id == id) {
|
||||
/* Ignore input dependency if we're driving properties of
|
||||
* the same ID, otherwise we'll be ending up in a cyclic
|
||||
* dependency here.
|
||||
*/
|
||||
continue;
|
||||
}
|
||||
OperationKey target_key(dtar->id,
|
||||
DEG_NODE_TYPE_TRANSFORM,
|
||||
DEG_OPCODE_TRANSFORM_FINAL);
|
||||
|
||||
Reference in New Issue
Block a user