diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-03 19:00:00 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-06 11:24:23 +0300 |
commit | 3330e518dc7ad941ec10e3c99eb6d051716cfefe (patch) | |
tree | 25b780dbd8c2409b95f561da22b8134de39bb098 | |
parent | 17395b6b08f4ae55f8b6d8122b295f8a406410d1 (diff) |
Depsgraph: Cleanup, remove unused function
-rw-r--r-- | source/blender/depsgraph/DEG_depsgraph_build.h | 5 | ||||
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_build.cc | 19 |
2 files changed, 0 insertions, 24 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph_build.h b/source/blender/depsgraph/DEG_depsgraph_build.h index 92d47618cd7..06202b6196e 100644 --- a/source/blender/depsgraph/DEG_depsgraph_build.h +++ b/source/blender/depsgraph/DEG_depsgraph_build.h @@ -73,11 +73,6 @@ void DEG_graph_relations_update(struct Depsgraph *graph, /* 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); - /* Add Dependencies ----------------------------- */ /* Handle for components to define their dependencies from callbacks. diff --git a/source/blender/depsgraph/intern/depsgraph_build.cc b/source/blender/depsgraph/intern/depsgraph_build.cc index 7dd9d1451cd..70799a81835 100644 --- a/source/blender/depsgraph/intern/depsgraph_build.cc +++ b/source/blender/depsgraph/intern/depsgraph_build.cc @@ -282,25 +282,6 @@ void DEG_relations_tag_update(Main *bmain) } } -/* Create new graph if didn't exist yet, - * or update relations if graph was tagged for update. - */ -void DEG_scene_relations_update(Main *bmain, Scene *scene) -{ - if (scene->depsgraph_legacy == NULL) { - /* Rebuild graph from scratch and exit. */ - scene->depsgraph_legacy = DEG_graph_new(); - DEG_graph_build_from_scene(scene->depsgraph_legacy, bmain, scene); - /* TODO(sergey): When we first create dependency graph we consider - * it is first time became visible. This is true for viewports, but - * will fail when render engines will start having their own graphs. - */ - DEG_graph_on_visible_update(bmain, scene->depsgraph_legacy); - return; - } - DEG_graph_relations_update(scene->depsgraph_legacy, bmain, scene); -} - void DEG_add_collision_relations(DepsNodeHandle *handle, Scene *scene, Object *ob, |