[Bf-blender-cvs] [9c5f2c8] depsgraph_refactor: Run a depsgraph evaluation of the new depsgraph alongside the current scene updates.

Lukas Tönne noreply at git.blender.org
Thu May 22 15:22:16 CEST 2014


Commit: 9c5f2c80a204ba93f59a823672f30f76c2e8c7ec
Author: Lukas Tönne
Date:   Thu May 22 15:04:04 2014 +0200
https://developer.blender.org/rB9c5f2c80a204ba93f59a823672f30f76c2e8c7ec

Run a depsgraph evaluation of the new depsgraph alongside the current scene updates.

This will allow more immediate testing of the scheduler.

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

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

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

diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c
index d55c808..dc82661 100644
--- a/source/blender/blenkernel/intern/scene.c
+++ b/source/blender/blenkernel/intern/scene.c
@@ -1550,6 +1550,11 @@ void BKE_scene_update_tagged(EvaluationContext *eval_ctx, Main *bmain, Scene *sc
 {
 	Scene *sce_iter;
 	
+	/********* new depsgraph *********/\
+	if (scene->depsgraph)
+		DEG_evaluate_on_refresh(scene->depsgraph, eval_ctx->for_render ? DEG_EVALUATION_CONTEXT_RENDER : DEG_EVALUATION_CONTEXT_VIEWPORT);
+	/******************/
+	
 	/* keep this first */
 	BLI_callback_exec(bmain, &scene->id, BLI_CB_EVT_SCENE_UPDATE_PRE);
 
@@ -1640,6 +1645,11 @@ void BKE_scene_update_for_newframe_ex(EvaluationContext *eval_ctx, Main *bmain,
 	double start_time = PIL_check_seconds_timer();
 #endif
 
+	/********* new depsgraph *********/
+	if (sce->depsgraph)
+		DEG_evaluate_on_framechange(sce->depsgraph, eval_ctx->for_render ? DEG_EVALUATION_CONTEXT_RENDER : DEG_EVALUATION_CONTEXT_VIEWPORT, ctime);
+	/******************/
+
 	/* keep this first */
 	BLI_callback_exec(bmain, &sce->id, BLI_CB_EVT_FRAME_CHANGE_PRE);
 	BLI_callback_exec(bmain, &sce->id, BLI_CB_EVT_SCENE_UPDATE_PRE);




More information about the Bf-blender-cvs mailing list