diff options
Diffstat (limited to 'source/blender/depsgraph/DEG_depsgraph_build.h')
-rw-r--r-- | source/blender/depsgraph/DEG_depsgraph_build.h | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph_build.h b/source/blender/depsgraph/DEG_depsgraph_build.h index b268822f659..334b15cc638 100644 --- a/source/blender/depsgraph/DEG_depsgraph_build.h +++ b/source/blender/depsgraph/DEG_depsgraph_build.h @@ -40,12 +40,15 @@ struct Depsgraph; /* ------------------------------------------------ */ -struct Main; -struct Scene; -struct Group; +struct CacheFile; struct EffectorWeights; +struct EvaluationContext; +struct Group; +struct Main; struct ModifierData; struct Object; +struct Scene; +struct ViewLayer; #ifdef __cplusplus extern "C" { @@ -56,28 +59,23 @@ 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_view_layer(struct Depsgraph *graph, + struct Main *bmain, + struct Scene *scene, + struct ViewLayer *view_layer); /* Tag relations from the given graph for update. */ 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 ViewLayer *view_layer); + /* Tag all relations in the database for update.*/ void DEG_relations_tag_update(struct Main *bmain); -/* Create new graph if didn't exist yet, - * or update relations if graph was tagged for update. - */ -void DEG_scene_relations_update(struct Main *bmain, struct Scene *scene); - -/* Rebuild dependency graph only for a given scene. */ -void DEG_scene_relations_rebuild(struct Main *bmain, - struct Scene *scene); - -/* Delete scene graph. */ -void DEG_scene_graph_free(struct Scene *scene); - /* Add Dependencies ----------------------------- */ /* Handle for components to define their dependencies from callbacks. @@ -87,9 +85,6 @@ void DEG_scene_graph_free(struct Scene *scene); */ struct DepsNodeHandle; -struct CacheFile; -struct Object; - typedef enum eDepsSceneComponentType { /* Parameters Component - Default when nothing else fits * (i.e. just SDNA property setting). @@ -166,7 +161,6 @@ void DEG_add_collision_relations(struct DepsNodeHandle *handle, struct Scene *scene, struct Object *object, struct Group *group, - int layer, unsigned int modifier_type, DEG_CollobjFilterFunction fn, bool dupli, |