Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-10-20 17:50:58 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-10-20 17:50:58 +0300
commit4f3d9a09fe9247e3ab1e62e1f998b78ceefaa9ba (patch)
treef7014d4bd9592a27eab522ebeb72386b66125fbd /source
parentcdd1e86499a31938d6e139ea091c4ec576ec8173 (diff)
Depsgraph: Make depsgraph a part of evaluation context
This way evaluation routines will know which exact depsgraph evaluation is happening for. Mainly needed to get evaluation flags associated with ID nodes.
Diffstat (limited to 'source')
-rw-r--r--source/blender/depsgraph/DEG_depsgraph.h1
-rw-r--r--source/blender/depsgraph/intern/eval/deg_eval.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph.h b/source/blender/depsgraph/DEG_depsgraph.h
index 894adbee8c9..c7c5849c174 100644
--- a/source/blender/depsgraph/DEG_depsgraph.h
+++ b/source/blender/depsgraph/DEG_depsgraph.h
@@ -84,6 +84,7 @@ typedef struct EvaluationContext {
eEvaluationMode mode;
float ctime;
+ struct Depsgraph *depsgraph;
struct SceneLayer *scene_layer;
struct RenderEngineType *engine;
} EvaluationContext;
diff --git a/source/blender/depsgraph/intern/eval/deg_eval.cc b/source/blender/depsgraph/intern/eval/deg_eval.cc
index 120785ac548..510e0e6ebbc 100644
--- a/source/blender/depsgraph/intern/eval/deg_eval.cc
+++ b/source/blender/depsgraph/intern/eval/deg_eval.cc
@@ -278,6 +278,7 @@ void deg_evaluate_on_refresh(EvaluationContext *eval_ctx,
/* Set time for the current graph evaluation context. */
TimeSourceDepsNode *time_src = graph->find_time_source();
+ eval_ctx->depsgraph = (::Depsgraph *)graph;
eval_ctx->scene_layer = DEG_get_evaluated_scene_layer((::Depsgraph *)graph);
eval_ctx->ctime = time_src->cfra;