Docking: Fixed DockBuilderRemoveNode() from overwriting other parent node flags when trying to move the CentralNode flag.

This commit is contained in:
omar 2019-05-28 00:06:21 +02:00
parent 5b0e59d9d5
commit c7c1bf177b

View File

@ -13492,7 +13492,7 @@ void ImGui::DockBuilderRemoveNode(ImGuiID node_id)
DockBuilderRemoveNodeDockedWindows(node_id, true); DockBuilderRemoveNodeDockedWindows(node_id, true);
DockBuilderRemoveNodeChildNodes(node_id); DockBuilderRemoveNodeChildNodes(node_id);
if (node->IsCentralNode() && node->ParentNode) if (node->IsCentralNode() && node->ParentNode)
node->ParentNode->LocalFlags = ImGuiDockNodeFlags_CentralNode; node->ParentNode->LocalFlags |= ImGuiDockNodeFlags_CentralNode;
DockContextRemoveNode(ctx, node, true); DockContextRemoveNode(ctx, node, true);
} }