1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Make Timeline non-nullable

This commit is contained in:
Andrei Zavatski 2024-03-18 20:38:19 +03:00
parent 57399e9899
commit 0edc249637

View File

@ -15,7 +15,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
public partial class TimelineControlPointDisplay : TimelinePart<TimelineControlPointGroup>
{
[Resolved]
private Timeline? timeline { get; set; }
private Timeline timeline { get; set; } = null!;
/// <summary>
/// The visible time/position range of the timeline.
@ -42,7 +42,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
{
base.Update();
if (timeline == null || DrawWidth <= 0) return;
if (DrawWidth <= 0) return;
(float, float) newRange = (
(ToLocalSpace(timeline.ScreenSpaceDrawQuad.TopLeft).X - TopPointPiece.WIDTH) / DrawWidth * Content.RelativeChildSize.X,