diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_eval.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_eval.cc b/source/blender/depsgraph/intern/depsgraph_eval.cc index edb6600f3e0..5b6516509b0 100644 --- a/source/blender/depsgraph/intern/depsgraph_eval.cc +++ b/source/blender/depsgraph/intern/depsgraph_eval.cc @@ -63,6 +63,10 @@ void DEG_evaluate_on_refresh(Depsgraph *graph) /* Update time on primary timesource. */ DEG::TimeSourceDepsNode *tsrc = deg_graph->find_time_source(); tsrc->cfra = deg_graph->ctime; + /* Update time in scene. */ + if (deg_graph->scene_cow) { + BKE_scene_frame_set(deg_graph->scene_cow, deg_graph->ctime); + } DEG::deg_evaluate_on_refresh(deg_graph); } @@ -78,6 +82,10 @@ void DEG_evaluate_on_framechange(Main *bmain, tsrc->cfra = ctime; tsrc->tag_update(deg_graph); DEG::deg_graph_flush_updates(bmain, deg_graph); + /* Update time in scene. */ + if (deg_graph->scene_cow) { + BKE_scene_frame_set(deg_graph->scene_cow, deg_graph->ctime); + } /* Perform recalculation updates. */ DEG::deg_evaluate_on_refresh(deg_graph); } |