Explorar o código

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

omar %!s(int64=6) %!d(string=hai) anos
pai
achega
75e3793f4d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      imgui.cpp

+ 1 - 0
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;