mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +08:00
Fix storyboard videos being offset incorrectly
This commit is contained in:
parent
e610b5e5b7
commit
b7308f5ed4
@ -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