From 16e7235a4bcf6511ffd661bb8a43668dbe01a041 Mon Sep 17 00:00:00 2001 From: LightInk205 Date: Wed, 7 Jul 2021 11:36:46 +0800 Subject: [PATCH] clear references when remove DockNode --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index 5de5f63e1173..7383e9c497f7 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -13023,6 +13023,7 @@ void ImGui::DockContextProcessUndockWindow(ImGuiContext* ctx, ImGuiWindow* windo window->DockIsActive = false; window->DockNodeIsVisible = window->DockTabIsVisible = false; window->Size = window->SizeFull = FixLargeWindowsWhenUndocking(window->SizeFull, window->Viewport); + window->DockNodeAsHost = NULL; MarkIniSettingsDirty(); }