mirror of
https://github.com/ppy/osu
synced 2025-01-02 04:12:13 +00:00
add CanBeNull attribute to LastRepeat
This commit is contained in:
parent
484e04acfb
commit
34c4ee7de8
@ -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);
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user