mirror of
https://github.com/osukey/osukey.git
synced 2025-06-08 12:58:01 +09:00
Fix exception when dragging after deleting object
This commit is contained in:
parent
4e025d994c
commit
e7238e25f9
@ -82,6 +82,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
case NotifyCollectionChangedAction.Remove:
|
case NotifyCollectionChangedAction.Remove:
|
||||||
foreach (var o in args.OldItems)
|
foreach (var o in args.OldItems)
|
||||||
SelectionBlueprints.FirstOrDefault(b => b.HitObject == o)?.Deselect();
|
SelectionBlueprints.FirstOrDefault(b => b.HitObject == o)?.Deselect();
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -250,6 +251,9 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
blueprint.Deselected -= onBlueprintDeselected;
|
blueprint.Deselected -= onBlueprintDeselected;
|
||||||
|
|
||||||
SelectionBlueprints.Remove(blueprint);
|
SelectionBlueprints.Remove(blueprint);
|
||||||
|
|
||||||
|
if (movementBlueprint == blueprint)
|
||||||
|
finishSelectionMovement();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void AddBlueprintFor(HitObject hitObject)
|
protected virtual void AddBlueprintFor(HitObject hitObject)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user