Jelajahi Sumber

Docking: removed legacy assert preventing to call DockBuilderSplitNode() on an existing split node. (#8472)

MegaMech 5 bulan lalu
induk
melakukan
bb8d2957ee
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 0
      docs/CHANGELOG.txt
  2. 0 2
      imgui.cpp

+ 2 - 0
docs/CHANGELOG.txt

@@ -150,6 +150,8 @@ Other changes:
 
 Docking+Viewports Branch:
 
+- Docking: Removed legacy assert preventing to call DockBuilderSplitNode() on an existing
+  split node. This makes using DockBuilder a little more flexible and bearable! (#8472) [@MegaMech]
 - Viewports: fixed an assert when a window load settings with a position outside
   monitor bounds, when there are multiple monitors. (#8393, #8385) [@gaborodriguez]
 - Viewports + Backends: Win32: Fixed setting title bar text when application

+ 0 - 2
imgui.cpp

@@ -19911,8 +19911,6 @@ ImGuiID ImGui::DockBuilderSplitNode(ImGuiID id, ImGuiDir split_dir, float size_r
         return 0;
     }
 
-    IM_ASSERT(!node->IsSplitNode()); // Assert if already Split
-
     ImGuiDockRequest req;
     req.Type = ImGuiDockRequestType_Split;
     req.DockTargetWindow = NULL;