mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-21 15:16:35 +00:00
Docking: Fixed DockBuilderRemoveNode() from overwriting other parent node flags when trying to move the CentralNode flag.
This commit is contained in:
parent
5b0e59d9d5
commit
c7c1bf177b
@ -13492,7 +13492,7 @@ void ImGui::DockBuilderRemoveNode(ImGuiID node_id)
|
||||
DockBuilderRemoveNodeDockedWindows(node_id, true);
|
||||
DockBuilderRemoveNodeChildNodes(node_id);
|
||||
if (node->IsCentralNode() && node->ParentNode)
|
||||
node->ParentNode->LocalFlags = ImGuiDockNodeFlags_CentralNode;
|
||||
node->ParentNode->LocalFlags |= ImGuiDockNodeFlags_CentralNode;
|
||||
DockContextRemoveNode(ctx, node, true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user