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
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-12-13 14:38:31 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-12-13 14:55:39 +0300
commit1b371d199eb0846fb2abd50477690d3e0bff0119 (patch)
tree5e48c933184d6581116319ee0fd93c4aae0c6733
parentae80835d104e9de7bbdb9825c48cc4c96f1e3169 (diff)
Depsgraph: Ensure dependency graph is allocated for evaluation context
This is something what we would need to ensure anyway, so doesn't seem to make sense to NOT allocate depsgraph and then worry about this externally. Steps to reproduce: add cube, change it's size in redo panel. Found by Campbell during code review session.
-rw-r--r--source/blender/depsgraph/intern/depsgraph_eval.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_eval.cc b/source/blender/depsgraph/intern/depsgraph_eval.cc
index 1d389b902b8..2ed403c463a 100644
--- a/source/blender/depsgraph/intern/depsgraph_eval.cc
+++ b/source/blender/depsgraph/intern/depsgraph_eval.cc
@@ -85,11 +85,10 @@ void DEG_evaluation_context_init_from_scene(EvaluationContext *eval_ctx,
eEvaluationMode mode)
{
DEG_evaluation_context_init(eval_ctx, mode);
- eval_ctx->depsgraph = BKE_scene_get_depsgraph(scene, view_layer, false);
+ eval_ctx->depsgraph = BKE_scene_get_depsgraph(scene, view_layer, true);
eval_ctx->view_layer = view_layer;
eval_ctx->engine_type = engine_type;
eval_ctx->ctime = BKE_scene_frame_get(scene);
- BLI_assert(eval_ctx->depsgraph != NULL);
}
/* Free evaluation context. */