Fix mania editor null reference

This commit is contained in:
ekrctb 2021-04-26 19:53:38 +09:00
parent 5aa522b1c2
commit 1d023dcedb

View File

@ -18,6 +18,9 @@ namespace osu.Game.Rulesets.Mania.Edit.Blueprints
[Resolved]
private IScrollingInfo scrollingInfo { get; set; }
// Overriding the base because this method is called right after `Column` is changed and `DrawableObject` is not yet loaded and Parent is not set.
public override Vector2 GetInstantDelta(Vector2 screenSpacePosition) => Parent.ToLocalSpace(screenSpacePosition) - Position;
protected ManiaSelectionBlueprint(DrawableHitObject drawableObject)
: base(drawableObject)
{