Fix: VSE: Scene Sync doesn't account for scene start frame

The time synchronization function assumed that the content
of the scene strip starts at frame 0, but it should start
at the start frame of the scene.

Pull Request: https://projects.blender.org/blender/blender/pulls/146653
This commit is contained in:
Falk David
2025-09-23 18:02:03 +02:00
committed by Falk David
parent 7ec89d1bfb
commit bd07749a82

View File

@@ -436,7 +436,8 @@ void sync_active_scene_and_time_with_scene_strip(bContext &C)
/* Compute the scene time based on the scene strip. */
const float frame_index = seq::give_frame_index(
sequence_scene, scene_strip, sequence_scene->r.cfra);
sequence_scene, scene_strip, sequence_scene->r.cfra) +
active_scene->r.sfra;
if (active_scene->r.flag & SCER_SHOW_SUBFRAME) {
active_scene->r.cfra = int(frame_index);
active_scene->r.subframe = frame_index - int(frame_index);