mirror of
https://github.com/ocornut/imgui.git
synced 2026-09-26 16:05:45 +03: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue