Fix T48734: Driver not updating when using Single From Driver within same object

This commit is contained in:
Sergey Sharybin 2016-07-13 15:00:29 +02:00
parent afe954e64c
commit 029de800a4
Notes: blender-bot 2023-02-14 07:47:57 +01:00
Referenced by issue #48846, Ruler / Protractor thickness mode crashes blender in Ortho view
Referenced by issue #48734, Driver not updating when using Single From Driver
1 changed files with 6 additions and 0 deletions

View File

@ -920,6 +920,12 @@ void DepsgraphRelationBuilder::build_driver(ID *id, FCurve *fcu)
}
}
else {
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;
}
/* resolve path to get node */
RNAPathKey target_key(dtar->id, dtar->rna_path ? dtar->rna_path : "");
add_relation(target_key, driver_key, DEPSREL_TYPE_DRIVER_TARGET, "[RNA Target -> Driver]");