mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-25 09:06:35 +00:00
Docking: Fix typo (had no side effect) (#4778)
Co-authored-by: Mikko Sivulainen <mikko.sivulainen@supercell.com>
This commit is contained in:
parent
719d931304
commit
5f5ba8eb11
@ -13426,7 +13426,7 @@ void ImGui::DockContextProcessDock(ImGuiContext* ctx, ImGuiDockRequest* req)
|
|||||||
IM_ASSERT(last_focused_node != NULL);
|
IM_ASSERT(last_focused_node != NULL);
|
||||||
ImGuiDockNode* last_focused_root_node = DockNodeGetRootNode(last_focused_node);
|
ImGuiDockNode* last_focused_root_node = DockNodeGetRootNode(last_focused_node);
|
||||||
IM_ASSERT(last_focused_root_node == DockNodeGetRootNode(payload_node));
|
IM_ASSERT(last_focused_root_node == DockNodeGetRootNode(payload_node));
|
||||||
last_focused_node->SetLocalFlags(last_focused_node->LocalFlags |= ImGuiDockNodeFlags_CentralNode);
|
last_focused_node->SetLocalFlags(last_focused_node->LocalFlags | ImGuiDockNodeFlags_CentralNode);
|
||||||
node->SetLocalFlags(node->LocalFlags & ~ImGuiDockNodeFlags_CentralNode);
|
node->SetLocalFlags(node->LocalFlags & ~ImGuiDockNodeFlags_CentralNode);
|
||||||
last_focused_root_node->CentralNode = last_focused_node;
|
last_focused_root_node->CentralNode = last_focused_node;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user