Fix minor Editor UI issues

This commit is contained in:
2026-09-15 12:55:13 +02:00
parent 3ff1f825a7
commit bd5edcc4d2
2 changed files with 12 additions and 3 deletions
@@ -117,9 +117,12 @@ namespace FlaxEditor.Windows.Assets
public override void OnClean()
{
Window._isolateIndex = -1;
Window._highlightIndex = -1;
Window._meshProxy = null;
if (Window != null)
{
Window._isolateIndex = -1;
Window._highlightIndex = -1;
Window._meshProxy = null;
}
base.OnClean();
}
+6
View File
@@ -171,6 +171,12 @@ namespace FlaxEngine.GUI
/// </summary>
public virtual void DisposeChildren()
{
// Steal focus from children to maintain it in a hierarchy
if (ContainsFocus)
{
Focus();
}
bool wasLayoutLocked = _isLayoutLocked;
_isLayoutLocked = true;