From d325e6f0e845d710abe4847a57be8e30920911a9 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 9 Nov 2017 11:20:17 +0100 Subject: Depsgraph: Make dependency graph to be built from scene layer This is a final step of having proper ownership. Now selecting different layers in the "top bar" will actually do what this is expected to do. Surely, there are still things to be done under the hood, that will happen in a less intrusive way. --- source/blender/depsgraph/DEG_depsgraph_build.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'source/blender/depsgraph/DEG_depsgraph_build.h') diff --git a/source/blender/depsgraph/DEG_depsgraph_build.h b/source/blender/depsgraph/DEG_depsgraph_build.h index 06202b6196e..e328d3d9e8c 100644 --- a/source/blender/depsgraph/DEG_depsgraph_build.h +++ b/source/blender/depsgraph/DEG_depsgraph_build.h @@ -48,6 +48,7 @@ struct Main; struct ModifierData; struct Object; struct Scene; +struct SceneLayer; #ifdef __cplusplus extern "C" { @@ -58,9 +59,10 @@ extern "C" { /* Build depsgraph for the given scene, and dump results in given * graph container. */ -void DEG_graph_build_from_scene(struct Depsgraph *graph, - struct Main *bmain, - struct Scene *scene); +void DEG_graph_build_from_scene_layer(struct Depsgraph *graph, + struct Main *bmain, + struct Scene *scene, + struct SceneLayer *scene_layer); /* Tag relations from the given graph for update. */ void DEG_graph_tag_relations_update(struct Depsgraph *graph); @@ -68,7 +70,8 @@ void DEG_graph_tag_relations_update(struct Depsgraph *graph); /* Create or update relations in the specified graph. */ void DEG_graph_relations_update(struct Depsgraph *graph, struct Main *bmain, - struct Scene *scene); + struct Scene *scene, + struct SceneLayer *scene_layer); /* Tag all relations in the database for update.*/ void DEG_relations_tag_update(struct Main *bmain); -- cgit v1.2.3