diff --git a/Source/Editor/CustomEditors/CustomEditorPresenter.cs b/Source/Editor/CustomEditors/CustomEditorPresenter.cs index 3ab550b84..703c3f51b 100644 --- a/Source/Editor/CustomEditors/CustomEditorPresenter.cs +++ b/Source/Editor/CustomEditors/CustomEditorPresenter.cs @@ -93,6 +93,9 @@ namespace FlaxEditor.CustomEditors catch (Exception ex) { FlaxEditor.Editor.LogWarning(ex); + + // Refresh layout on errors to reduce lgo spam + _presenter.BuildLayout(); } base.Update(deltaTime); @@ -397,6 +400,7 @@ namespace FlaxEditor.CustomEditors Panel.DisposeChildren(); ClearLayout(); + _buildOnUpdate = false; Editor.Setup(this); Panel.IsLayoutLocked = false; @@ -484,7 +488,6 @@ namespace FlaxEditor.CustomEditors { if (_buildOnUpdate) { - _buildOnUpdate = false; BuildLayout(); }