mirror of
https://github.com/ppy/osu.git
synced 2026-05-21 05:09:57 +08:00
add CanBeNull attribute to LastRepeat
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user