[Bf-blender-cvs] [b6d920bbd5a] blender2.8: Depsgraph: Fix bug with broken tweak of animated node tree settings

Sergey Sharybin noreply at git.blender.org
Tue Jun 5 15:11:39 CEST 2018


Commit: b6d920bbd5ab16d4dfc12f4a9d35b0f522e66e85
Author: Sergey Sharybin
Date:   Tue Jun 5 15:10:09 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBb6d920bbd5ab16d4dfc12f4a9d35b0f522e66e85

Depsgraph: Fix bug with broken tweak of animated node tree settings

With single editing context we can have expected and correct evaluation order
of animation and material update.

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

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 d5ea8103742..e0df724818d 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -1952,7 +1952,7 @@ void DepsgraphRelationBuilder::build_nodetree(bNodeTree *ntree)
 
 	if (check_id_has_anim_component(&ntree->id)) {
 		ComponentKey animation_key(&ntree->id, DEG_NODE_TYPE_ANIMATION);
-		add_relation(shading_parameters_key, animation_key, "NTree Shading Parameters");
+		add_relation(animation_key, shading_parameters_key, "NTree Shading Parameters");
 	}
 }



More information about the Bf-blender-cvs mailing list