mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:17:26 +08:00
Merge pull request #9579 from peppy/fix-video-offset
Fix storyboard video playback when not starting at beginning of beatmap
This commit is contained in:
commit
81a09b621c
@ -55,10 +55,11 @@ namespace osu.Game.Storyboards.Drawables
|
||||
|
||||
if (video == null) return;
|
||||
|
||||
video.PlaybackPosition = Clock.CurrentTime - Video.StartTime;
|
||||
|
||||
using (video.BeginAbsoluteSequence(0))
|
||||
using (video.BeginAbsoluteSequence(Video.StartTime))
|
||||
{
|
||||
Schedule(() => video.PlaybackPosition = Time.Current - Video.StartTime);
|
||||
video.FadeIn(500);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user