1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 04:02:59 +08:00

Convert pathTypes to local variable

Not entirely sure what holds the reference to pathTypes now (the binding to`slider.Path.ControlPoints` maybe?), but this does seem to work still.
This commit is contained in:
Naxess 2021-04-08 01:43:06 +02:00
parent b8ab1c7682
commit d1d56c636a

View File

@ -50,8 +50,6 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
[Resolved]
private OsuColour colours { get; set; }
private readonly List<IBindable<PathType?>> pathTypes;
private IBindable<int> sliderVersion;
private IBindable<Vector2> sliderPosition;
private IBindable<float> sliderScale;
@ -61,7 +59,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
{
this.slider = slider;
ControlPoint = controlPoint;
pathTypes = new List<IBindable<PathType?>>();
var pathTypes = new List<IBindable<PathType?>>();
slider.Path.ControlPoints.BindCollectionChanged((_, args) =>
{