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:
parent
57399e9899
commit
0edc249637
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user