1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 19:12:54 +08:00

Avoid recreating child hierarchy when unnecessary

This commit is contained in:
Dean Herbert 2020-10-01 16:36:03 +09:00
parent 1aff263419
commit 60e6cfa45c

View File

@ -31,6 +31,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
get => canRotate;
set
{
if (canRotate == value) return;
canRotate = value;
recreate();
}
@ -46,6 +48,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
get => canScaleX;
set
{
if (canScaleX == value) return;
canScaleX = value;
recreate();
}
@ -61,6 +65,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
get => canScaleY;
set
{
if (canScaleY == value) return;
canScaleY = value;
recreate();
}