[Bf-blender-cvs] [3801f76b7ba] master: Fix T52932: Driver with target of custom property from scene fails to update

Sergey Sharybin noreply at git.blender.org
Thu Sep 28 13:18:49 CEST 2017


Commit: 3801f76b7baf48c608741aba84f6c51e418614dc
Author: Sergey Sharybin
Date:   Thu Sep 28 16:13:28 2017 +0500
Branches: master
https://developer.blender.org/rB3801f76b7baf48c608741aba84f6c51e418614dc

Fix T52932: Driver with target of custom property from scene fails to update

Note that this is only supported in new depsgraph.

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

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

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

diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes_scene.cc b/source/blender/depsgraph/intern/builder/deg_builder_nodes_scene.cc
index 3249867e416..521276bc608 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_nodes_scene.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes_scene.cc
@@ -126,6 +126,13 @@ void DepsgraphNodeBuilder::build_scene(Main *bmain, Scene *scene)
 	LINKLIST_FOREACH (MovieClip *, clip, &bmain->movieclip) {
 		build_movieclip(clip);
 	}
+
+	/* Parameters evaluation for scene relations mainly. */
+	add_operation_node(&scene->id,
+	                   DEG_NODE_TYPE_PARAMETERS,
+	                   NULL,
+	                   DEG_OPCODE_PLACEHOLDER,
+	                   "Scene Eval");
 }
 
 }  // namespace DEG



More information about the Bf-blender-cvs mailing list