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:
parent
1aff263419
commit
60e6cfa45c
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user