mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 16:02:58 +08:00
Merge pull request #8648 from peppy/fix-storyboard-video-offset
Fix storyboard videos being offset incorrectly
This commit is contained in:
commit
1a1301b7fc
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user