1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 22:22: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; get => canRotate;
set set
{ {
if (canRotate == value) return;
canRotate = value; canRotate = value;
recreate(); recreate();
} }
@ -46,6 +48,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
get => canScaleX; get => canScaleX;
set set
{ {
if (canScaleX == value) return;
canScaleX = value; canScaleX = value;
recreate(); recreate();
} }
@ -61,6 +65,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
get => canScaleY; get => canScaleY;
set set
{ {
if (canScaleY == value) return;
canScaleY = value; canScaleY = value;
recreate(); recreate();
} }