diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-07 19:01:14 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-08 17:02:19 +0300 |
commit | 20988ed5dcec977c641a29f2cc948d4bdb6f86cd (patch) | |
tree | 55615ab40db56e1ba5a5a55f7f78de540ee84926 /source/blender/depsgraph/intern/depsgraph_eval.cc | |
parent | 3750dfaa0a23130f1fc5200b67443ce68fa4d930 (diff) |
Depsgraph: Move storage from single per-scene depsgraph to a hash storage
Depsgraph itself is still created fer the whole scene rather than for a
single layer, this is to be addressed next.
The storage for those dependency graphs is in scene, but now it is a hash
indexed by layer. In the future we can extend hash key to include extra
information (workspace? window?).
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_eval.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_eval.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_eval.cc b/source/blender/depsgraph/intern/depsgraph_eval.cc index 6dbbba0391b..00b07307933 100644 --- a/source/blender/depsgraph/intern/depsgraph_eval.cc +++ b/source/blender/depsgraph/intern/depsgraph_eval.cc @@ -89,6 +89,7 @@ void DEG_evaluation_context_init_from_scene(EvaluationContext *eval_ctx, eval_ctx->scene_layer = scene_layer; eval_ctx->engine = engine; eval_ctx->ctime = BKE_scene_frame_get(scene); + BLI_assert(eval_ctx->depsgraph != NULL); } /* Free evaluation context. */ |