Reduce assertions in dock panel in favor of pain error

This commit is contained in:
2026-09-15 13:13:27 +02:00
parent bd5edcc4d2
commit 4df2f3b4c1
+4 -2
View File
@@ -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();