From 75e3793f4db622b9a75d4973d05d0b69d035cb55 Mon Sep 17 00:00:00 2001 From: omar Date: Wed, 27 Mar 2019 17:30:32 +0100 Subject: [PATCH] Docking: Fix DockBuilderAddNode() not storing flags when creating floating node. --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index 7c30b218..a149cc49 100644 --- a/imgui.cpp +++ b/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;