diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-03-29 16:36:34 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-03-29 16:36:34 +0300 |
commit | 26b9c502edced5142e4c2e0151566b31b524bbab (patch) | |
tree | aee43b69fbb370e9ba5db68ff060efa8021ee905 /source | |
parent | 11130970c6a3ff14cb4dd0caece2137891b43e87 (diff) | |
parent | 9f60c850f999591a0f4a5bb32622dee1e36adfbe (diff) |
Merge remote-tracking branch 'origin/master' into blender2.8
Fix for T54437: Sequencer preview uses last updated scene
The fix started in master, moving EvaluationContext initialization
before we leave `deg_evaluate_on_refresh()`.
Upon merging master we can fix the actual issue which was to set
the EvaluationContext depsgraph even if the depsgraph was already updated.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/depsgraph/intern/eval/deg_eval.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/depsgraph/intern/eval/deg_eval.cc b/source/blender/depsgraph/intern/eval/deg_eval.cc index f3b45303e35..1355e68097b 100644 --- a/source/blender/depsgraph/intern/eval/deg_eval.cc +++ b/source/blender/depsgraph/intern/eval/deg_eval.cc @@ -230,17 +230,17 @@ static void schedule_children(TaskPool *pool, void deg_evaluate_on_refresh(EvaluationContext *eval_ctx, Depsgraph *graph) { + /* Set time for the current graph evaluation context. */ + TimeSourceDepsNode *time_src = graph->find_time_source(); + eval_ctx->ctime = time_src->cfra; + eval_ctx->depsgraph = (::Depsgraph *)graph; + eval_ctx->view_layer = DEG_get_evaluated_view_layer((::Depsgraph *)graph); /* Nothing to update, early out. */ if (BLI_gset_len(graph->entry_tags) == 0) { return; } const bool do_time_debug = ((G.debug & G_DEBUG_DEPSGRAPH_TIME) != 0); const double start_time = do_time_debug ? PIL_check_seconds_timer() : 0; - /* Set time for the current graph evaluation context. */ - TimeSourceDepsNode *time_src = graph->find_time_source(); - eval_ctx->depsgraph = (::Depsgraph *)graph; - eval_ctx->view_layer = DEG_get_evaluated_view_layer((::Depsgraph *)graph); - eval_ctx->ctime = time_src->cfra; /* Set up evaluation context for depsgraph itself. */ DepsgraphEvalState state; state.eval_ctx = eval_ctx; |