[Bf-blender-cvs] [029de80] master: Fix T48734: Driver not updating when using Single From Driver within same object

Sergey Sharybin noreply at git.blender.org
Wed Jul 13 15:00:19 CEST 2016


Commit: 029de800a4cfdaef3f3e01277482baeaf57a5f89
Author: Sergey Sharybin
Date:   Wed Jul 13 15:00:29 2016 +0200
Branches: master
https://developer.blender.org/rB029de800a4cfdaef3f3e01277482baeaf57a5f89

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

===================================================================

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

===================================================================

diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
index 1662dfc..42b8260 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -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]");




More information about the Bf-blender-cvs mailing list