mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Fix osu! and catch hitobjects no longer scaled to 1 by default
This commit is contained in:
@ -24,7 +24,7 @@ namespace osu.Game.Rulesets.Objects
|
||||
/// <summary>
|
||||
/// The underlying <see cref="Bindable{T}"/>, only initialised on first access.
|
||||
/// </summary>
|
||||
public Bindable<T> Bindable => backingBindable ??= new Bindable<T> { Value = backingValue };
|
||||
public Bindable<T> Bindable => backingBindable ??= new Bindable<T>(defaultValue) { Value = backingValue };
|
||||
|
||||
/// <summary>
|
||||
/// The current value, derived from and delegated to <see cref="Bindable"/> if initialised, or a temporary field otherwise.
|
||||
@ -40,5 +40,13 @@ namespace osu.Game.Rulesets.Objects
|
||||
backingValue = value;
|
||||
}
|
||||
}
|
||||
|
||||
private readonly T defaultValue;
|
||||
|
||||
public HitObjectProperty(T value = default)
|
||||
{
|
||||
backingValue = defaultValue = value;
|
||||
backingBindable = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user