1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 01:02:55 +08:00

Don't hide SelectionBlueprints themselves, only their children

This commit is contained in:
Dean Herbert 2022-05-12 19:26:13 +09:00
parent 1b2c07e142
commit c63e65c677

View File

@ -89,16 +89,12 @@ namespace osu.Game.Rulesets.Edit
// set the body piece's alpha directly to avoid arbitrarily rendering frame buffers etc. of children. // set the body piece's alpha directly to avoid arbitrarily rendering frame buffers etc. of children.
foreach (var d in InternalChildren) foreach (var d in InternalChildren)
d.Hide(); d.Hide();
Hide();
} }
protected virtual void OnSelected() protected virtual void OnSelected()
{ {
foreach (var d in InternalChildren) foreach (var d in InternalChildren)
d.Show(); d.Show();
Show();
} }
// When not selected, input is only required for the blueprint itself to receive IsHovering // When not selected, input is only required for the blueprint itself to receive IsHovering