1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 17:27:24 +08:00

Merge pull request #8648 from peppy/fix-storyboard-video-offset

Fix storyboard videos being offset incorrectly
This commit is contained in:
Dan Balasescu 2020-04-07 14:53:32 +09:00 committed by GitHub
commit 1a1301b7fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,6 @@ namespace osu.Game.Storyboards.Drawables
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Alpha = 0,
PlaybackPosition = Video.StartTime
};
}
@ -56,6 +55,8 @@ namespace osu.Game.Storyboards.Drawables
if (video == null) return;
video.PlaybackPosition = Clock.CurrentTime - Video.StartTime;
using (video.BeginAbsoluteSequence(0))
video.FadeIn(500);
}