mirror of
https://github.com/ppy/osu.git
synced 2024-09-21 19: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:
commit
1a1301b7fc
@ -46,7 +46,6 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Alpha = 0,
|
Alpha = 0,
|
||||||
PlaybackPosition = Video.StartTime
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,6 +55,8 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
|
|
||||||
if (video == null) return;
|
if (video == null) return;
|
||||||
|
|
||||||
|
video.PlaybackPosition = Clock.CurrentTime - Video.StartTime;
|
||||||
|
|
||||||
using (video.BeginAbsoluteSequence(0))
|
using (video.BeginAbsoluteSequence(0))
|
||||||
video.FadeIn(500);
|
video.FadeIn(500);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user