add CanBeNull attribute to LastRepeat

This commit is contained in:
OliBomby 2024-06-03 13:38:42 +02:00
parent 484e04acfb
commit 34c4ee7de8
2 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
base.Update();
var circle = position == SliderPosition.Start ? (HitCircle)Slider.HeadCircle :
Slider.RepeatCount % 2 == 0 ? Slider.TailCircle : Slider.LastRepeat;
Slider.RepeatCount % 2 == 0 ? Slider.TailCircle : Slider.LastRepeat!;
CirclePiece.UpdateFrom(circle);
marker.UpdateFrom(circle);

View File

@ -9,6 +9,7 @@ using System.Collections.Generic;
using osu.Game.Rulesets.Objects;
using System.Linq;
using System.Threading;
using JetBrains.Annotations;
using Newtonsoft.Json;
using osu.Framework.Bindables;
using osu.Framework.Caching;
@ -163,6 +164,7 @@ namespace osu.Game.Rulesets.Osu.Objects
public SliderTailCircle TailCircle { get; protected set; }
[JsonIgnore]
[CanBeNull]
public SliderRepeat LastRepeat { get; protected set; }
public Slider()