From 0913e6f73888475f322aa5c3989b18770a8a3da5 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 30 Oct 2025 10:39:46 +0100 Subject: [PATCH] Fix error when focus changes during focus change xd --- Source/Engine/UI/GUI/WindowRootControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/UI/GUI/WindowRootControl.cs b/Source/Engine/UI/GUI/WindowRootControl.cs index f39cf0346..29d252ed1 100644 --- a/Source/Engine/UI/GUI/WindowRootControl.cs +++ b/Source/Engine/UI/GUI/WindowRootControl.cs @@ -274,7 +274,7 @@ namespace FlaxEngine.GUI if (_focusedControl != null) { _focusedControl.OnGotFocus(); - Assert.IsTrue(_focusedControl.IsFocused); + Assert.IsTrue(_focusedControl == null || _focusedControl.IsFocused); } // Update flags