Fix T52932: Driver with target of custom property from scene fails to update
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 28 Sep 2017 11:13:28 +0000 (16:13 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 28 Sep 2017 11:13:28 +0000 (16:13 +0500)
Note that this is only supported in new depsgraph.

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

index 3249867e41624d8d576a51fcd862d7ca37c85acc..521276bc608ab890bffeda849bf85faabc3026e1 100644 (file)
@@ -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