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