mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-10 16:35:53 +01:00
Docking: Fix dock split of current window before End()
- Fix erroneous reset `window->DockIsActive` to `false` of first docked window in `ImGui::DockNodeMoveWindows()`
This commit is contained in:
parent
6029ee3789
commit
06a392619d
@ -18998,8 +18998,9 @@ static void ImGui::DockNodeMoveWindows(ImGuiDockNode* dst_node, ImGuiDockNode* s
|
||||
for (ImGuiWindow* window : src_node->Windows)
|
||||
{
|
||||
window->DockNode = NULL;
|
||||
window->DockIsActive = false;
|
||||
const bool dock_is_active = window->DockIsActive;
|
||||
DockNodeAddWindow(dst_node, window, !move_tab_bar);
|
||||
window->DockIsActive |= dock_is_active;
|
||||
}
|
||||
src_node->Windows.clear();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user