mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-17 01:04:19 +00:00
Docking: Fix DockBuilderAddNode() not storing flags when creating floating node.
This commit is contained in:
parent
8d4b5fef1d
commit
75e3793f4d
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue