Fix T89040: dependency graph not handling time remapping correctly
In this bug report it resulted in rendering animations stopping too early, but this affected more areas. After the previous cleanup commit, it becomes clear that frame and ctime values were mixed up.
This commit is contained in:
@@ -679,7 +679,7 @@ static void engine_depsgraph_init(RenderEngine *engine, ViewLayer *view_layer)
|
||||
DRW_render_context_enable(engine->re);
|
||||
}
|
||||
|
||||
DEG_evaluate_on_framechange(depsgraph, CFRA);
|
||||
DEG_evaluate_on_framechange(depsgraph, BKE_scene_frame_get(scene));
|
||||
|
||||
if (use_gpu_context) {
|
||||
DRW_render_context_disable(engine->re);
|
||||
|
||||
@@ -1828,7 +1828,7 @@ void RE_SetReports(Render *re, ReportList *reports)
|
||||
static void render_update_depsgraph(Render *re)
|
||||
{
|
||||
Scene *scene = re->scene;
|
||||
DEG_evaluate_on_framechange(re->pipeline_depsgraph, CFRA);
|
||||
DEG_evaluate_on_framechange(re->pipeline_depsgraph, BKE_scene_frame_get(scene));
|
||||
BKE_scene_update_sound(re->pipeline_depsgraph, re->main);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user