Docking: Fix DockBuilderAddNode() not storing flags when creating floating node.

features/sdl_renderer3_multiviewports
omar ago%!(EXTRA string=6 years)
parent 8d4b5fef1d
commit 75e3793f4d
  1. 1
      imgui.cpp

@ -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…
Cancel
Save