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.
This commit is contained in:
parent
ae80835d10
commit
1b371d199e
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue