[Bf-blender-cvs] [a15a7dc] depsgraph_refactor: Depsgraph: For now, knock out RNAPathKey connection when creating drivers

Joshua Leung noreply at git.blender.org
Thu Jan 8 10:49:07 CET 2015


Commit: a15a7dcb129a120011071a8fce3cd7ab94fce931
Author: Joshua Leung
Date:   Thu Jan 8 21:58:24 2015 +1300
Branches: depsgraph_refactor
https://developer.blender.org/rBa15a7dcb129a120011071a8fce3cd7ab94fce931

Depsgraph: For now, knock out RNAPathKey connection when creating drivers

This doesn't actually do anything yet, since the lookups usually end up pointing
to structs which cannot be located in the graph. Currently, we manually
set up links for the common situations where this would be useful, so it should
be fine to disable this for now. Plus, it silences a whole bunch of warning
prints.

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

M	source/blender/depsgraph/intern/depsgraph_build_relations.cpp

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

diff --git a/source/blender/depsgraph/intern/depsgraph_build_relations.cpp b/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
index 0b15351..87aa1ee 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
@@ -567,8 +567,8 @@ void DepsgraphRelationBuilder::build_driver(ID *id, FCurve *fcu)
 	
 	/* create dependency between driver and data affected by it */
 	/* - direct property relationship... */
-	RNAPathKey affected_key(id, fcu->rna_path);
-	add_relation(driver_key, affected_key, DEPSREL_TYPE_DRIVER, "[Driver -> Data] DepsRel");
+	//RNAPathKey affected_key(id, fcu->rna_path);
+	//add_relation(driver_key, affected_key, DEPSREL_TYPE_DRIVER, "[Driver -> Data] DepsRel");
 	
 	/* hook up update callback associated with F-Curve */
 	// ...




More information about the Bf-blender-cvs mailing list