Merge pull request #11916 from bdach/restore-default-transform-mutation

Fix restore default button potentially mutating transforms during load
This commit is contained in:
Dean Herbert 2021-02-28 12:40:17 +09:00 committed by GitHub
commit 3bb46cd8cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -207,7 +207,9 @@ public void SetButtonColour(Color4 buttonColour)
UpdateState();
}
public void UpdateState()
public void UpdateState() => Scheduler.AddOnce(updateState);
private void updateState()
{
if (bindable == null)
return;