From 4df2f3b4c18af815fedc328ff3b4f677d9176ce7 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 15 Sep 2026 13:13:27 +0200 Subject: [PATCH] Reduce assertions in dock panel in favor of pain error --- Source/Editor/GUI/Docking/DockPanel.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Editor/GUI/Docking/DockPanel.cs b/Source/Editor/GUI/Docking/DockPanel.cs index ae162c714..20ecad605 100644 --- a/Source/Editor/GUI/Docking/DockPanel.cs +++ b/Source/Editor/GUI/Docking/DockPanel.cs @@ -501,8 +501,10 @@ namespace FlaxEditor.GUI.Docking { scrPanel.GetChild(i).Parent = splitterParent; } - Assert.IsTrue(scrPanel.ChildrenCount == 0); - Assert.IsTrue(splitterParent.ChildrenCount == srcPanelChildrenCount); + if (scrPanel.ChildrenCount != 0 || splitterParent.ChildrenCount == srcPanelChildrenCount) + { + Editor.LogError("Broken dock panel layout!"); + } // Delete splitter.Dispose();