mirror of
https://github.com/ppy/osu
synced 2024-12-25 00:02:48 +00:00
Fix storyboard video playback when not starting at beginning of beatmap
This commit is contained in:
parent
f0fa859609
commit
0a1e6a8273
@ -55,10 +55,11 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
|
|
||||||
if (video == null) return;
|
if (video == null) return;
|
||||||
|
|
||||||
video.PlaybackPosition = Clock.CurrentTime - Video.StartTime;
|
using (video.BeginAbsoluteSequence(Video.StartTime))
|
||||||
|
{
|
||||||
using (video.BeginAbsoluteSequence(0))
|
Schedule(() => video.PlaybackPosition = Time.Current - Video.StartTime);
|
||||||
video.FadeIn(500);
|
video.FadeIn(500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user