mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 18:12:56 +08:00
Remove unnecessary method
This commit is contained in:
parent
c1db11fa06
commit
179656788d
@ -40,14 +40,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
ScreenSpaceStartPosition = screenSpaceStartPosition;
|
ScreenSpaceStartPosition = screenSpaceStartPosition;
|
||||||
ScreenSpacePosition = screenSpacePosition;
|
ScreenSpacePosition = screenSpacePosition;
|
||||||
|
|
||||||
InstantDelta = toLocalSpace(ScreenSpacePosition) - Blueprint.HitObject.Position;
|
InstantDelta = Blueprint.HitObject.Parent.ToLocalSpace(ScreenSpacePosition) - Blueprint.HitObject.Position;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Converts a screen-space position into the coordinate space of the hitobject's parents.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="screenSpacePosition">The screen-space position.</param>
|
|
||||||
/// <returns>The position in the coordinate space of the hitobject's parent.</returns>
|
|
||||||
private Vector2 toLocalSpace(Vector2 screenSpacePosition) => Blueprint.HitObject.Parent.ToLocalSpace(screenSpacePosition);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user