mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-06 04:58:47 +02:00
Docking: Fix DockBuilderAddNode() not storing flags when creating floating node.
This commit is contained in:
@ -13070,6 +13070,7 @@ ImGuiID ImGui::DockBuilderAddNode(ImGuiID id, ImGuiDockNodeFlags flags)
|
||||
node = DockContextFindNodeByID(ctx, id);
|
||||
if (!node)
|
||||
node = DockContextAddNode(ctx, id);
|
||||
node->Flags = flags;
|
||||
}
|
||||
node->LastFrameAlive = ctx->FrameCount; // Set this otherwise BeginDocked will undock during the same frame.
|
||||
return node->ID;
|
||||
|
Reference in New Issue
Block a user