[Bf-blender-cvs] [fc789803cab] blender2.8: Depsgraph: Remove old unused function which is no longer to be used

Sergey Sharybin noreply at git.blender.org
Tue Nov 7 16:59:34 CET 2017


Commit: fc789803cabc9dfd47319a7f0297456c8f60153c
Author: Sergey Sharybin
Date:   Tue Nov 7 16:53:10 2017 +0100
Branches: blender2.8
https://developer.blender.org/rBfc789803cabc9dfd47319a7f0297456c8f60153c

Depsgraph: Remove old unused function which is no longer to be used

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

M	source/blender/blenkernel/BKE_scene.h
M	source/blender/blenkernel/intern/scene.c

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

diff --git a/source/blender/blenkernel/BKE_scene.h b/source/blender/blenkernel/BKE_scene.h
index 3b550bd845d..b9e88d02efc 100644
--- a/source/blender/blenkernel/BKE_scene.h
+++ b/source/blender/blenkernel/BKE_scene.h
@@ -157,9 +157,6 @@ void BKE_scene_graph_update_for_newframe(struct EvaluationContext *eval_ctx,
                                          struct Main *bmain,
                                          struct Scene *sce);
 
-/* NOTE: DO NOT USE THOSE IN NEW CODE! */
-void BKE_scene_update_tagged(struct EvaluationContext *eval_ctx, struct Main *bmain, struct Scene *sce);
-
 struct SceneRenderLayer *BKE_scene_add_render_layer(struct Scene *sce, const char *name);
 bool BKE_scene_remove_render_layer(struct Main *main, struct Scene *scene, struct SceneRenderLayer *srl);
 
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c
index 4b2e7eff866..f5aa6223d5d 100644
--- a/source/blender/blenkernel/intern/scene.c
+++ b/source/blender/blenkernel/intern/scene.c
@@ -1660,27 +1660,6 @@ void BKE_scene_graph_update_for_newframe(EvaluationContext *eval_ctx,
 	DEG_ids_clear_recalc(bmain);
 }
 
-static void scene_ensure_legacy_depsgraph(Main *bmain, Scene *scene)
-{
-	if (scene->depsgraph_legacy == NULL) {
-		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);
-	}
-}
-
-void BKE_scene_update_tagged(EvaluationContext *eval_ctx, Main *bmain, Scene *scene)
-{
-	/* Make sure graph is allocated. This is not always guaranteed now. */
-	scene_ensure_legacy_depsgraph(bmain, scene);
-	/* Do actual graph evaluation. */
-	BKE_scene_graph_update_tagged(eval_ctx, scene->depsgraph_legacy, bmain, scene);
-}
-
 /* return default layer, also used to patch old files */
 SceneRenderLayer *BKE_scene_add_render_layer(Scene *sce, const char *name)
 {



More information about the Bf-blender-cvs mailing list