mirror of
https://github.com/ppy/osu.git
synced 2025-03-19 00:37:20 +08:00
Merge pull request #9352 from smoogipoo/fix-editor-drag-exception
Fix exception when dragging after deleting object
This commit is contained in:
commit
92cf2dd3bb
@ -82,6 +82,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
case NotifyCollectionChangedAction.Remove:
|
||||
foreach (var o in args.OldItems)
|
||||
SelectionBlueprints.FirstOrDefault(b => b.HitObject == o)?.Deselect();
|
||||
|
||||
break;
|
||||
}
|
||||
};
|
||||
@ -250,6 +251,9 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
blueprint.Deselected -= onBlueprintDeselected;
|
||||
|
||||
SelectionBlueprints.Remove(blueprint);
|
||||
|
||||
if (movementBlueprint == blueprint)
|
||||
finishSelectionMovement();
|
||||
}
|
||||
|
||||
protected virtual void AddBlueprintFor(HitObject hitObject)
|
||||
|
Loading…
x
Reference in New Issue
Block a user