[Bf-blender-cvs] [148ac78] object_nodes: Extension of the new dependency graph relations to support object nodes.

Lukas Tönne noreply at git.blender.org
Tue Nov 24 09:44:51 CET 2015


Commit: 148ac78b4a057a46672bc5886843c3f9979095f7
Author: Lukas Tönne
Date:   Sun Nov 22 10:03:01 2015 +0100
Branches: object_nodes
https://developer.blender.org/rB148ac78b4a057a46672bc5886843c3f9979095f7

Extension of the new dependency graph relations to support object nodes.

This generally triggers a mesh data recalc when *anything* inside the
object node tree is changed. Eventually it should be more specific to
changes in a geometry node tree, but the current design of deps nodes
does not reflect such internal node semantics nicely (although new
depsgraph will allow us to do it properly in the future).

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

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

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

diff --git a/source/blender/depsgraph/intern/depsgraph_build_relations.cc b/source/blender/depsgraph/intern/depsgraph_build_relations.cc
index 50046a5..46b1a54 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_relations.cc
+++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cc
@@ -1710,6 +1710,11 @@ void DepsgraphRelationBuilder::build_obdata_geom(Main *bmain, Scene *scene, Obje
 		 */
 		add_relation(animation_key, obdata_geom_eval_key, DEPSREL_TYPE_GEOMETRY_EVAL, "Animation");
 	}
+	
+	if (ob->nodetree) {
+		ComponentKey nodetree_key(&ob->nodetree->id, DEPSNODE_TYPE_PARAMETERS);
+		add_relation(nodetree_key, obdata_geom_eval_key, DEPSREL_TYPE_GEOMETRY_EVAL, "NTree->Object Geometry");
+	}
 }
 
 /* Cameras */




More information about the Bf-blender-cvs mailing list