mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 17:02:55 +08:00
Merge pull request #2243 from smoogipoo/fix-selectionbox-crash
Fix crash when attempting to select objects that don't have masks
This commit is contained in:
commit
caa2827581
@ -51,7 +51,11 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Layers
|
|||||||
|
|
||||||
private SelectionBox currentSelectionBox;
|
private SelectionBox currentSelectionBox;
|
||||||
|
|
||||||
public void AddSelectionOverlay() => AddInternal(currentSelectionBox = composer.CreateSelectionOverlay(overlayContainer));
|
public void AddSelectionOverlay()
|
||||||
|
{
|
||||||
|
if (overlayContainer.Count > 0)
|
||||||
|
AddInternal(currentSelectionBox = composer.CreateSelectionOverlay(overlayContainer));
|
||||||
|
}
|
||||||
|
|
||||||
public void RemoveSelectionOverlay()
|
public void RemoveSelectionOverlay()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user