mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 21:02:55 +08:00
Remove unnecessary schedule
This commit is contained in:
parent
dc222b5e4d
commit
74b6e691d8
@ -123,20 +123,12 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
if (blueprint == null)
|
||||
return;
|
||||
|
||||
if (hitObject.IsLoaded)
|
||||
addBlueprint();
|
||||
else
|
||||
hitObject.OnLoadComplete += _ => addBlueprint();
|
||||
blueprint.Selected += onBlueprintSelected;
|
||||
blueprint.Deselected += onBlueprintDeselected;
|
||||
blueprint.SelectionRequested += onSelectionRequested;
|
||||
blueprint.DragRequested += onDragRequested;
|
||||
|
||||
void addBlueprint()
|
||||
{
|
||||
blueprint.Selected += onBlueprintSelected;
|
||||
blueprint.Deselected += onBlueprintDeselected;
|
||||
blueprint.SelectionRequested += onSelectionRequested;
|
||||
blueprint.DragRequested += onDragRequested;
|
||||
|
||||
selectionBlueprints.Add(blueprint);
|
||||
}
|
||||
selectionBlueprints.Add(blueprint);
|
||||
}
|
||||
|
||||
private void removeBlueprintFor(DrawableHitObject hitObject) => removeBlueprintFor(hitObject.HitObject);
|
||||
|
Loading…
Reference in New Issue
Block a user