From 6d834d325e3ccba9a972f974d281dbe5c17a31da Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 17 Sep 2025 17:36:47 +0200 Subject: [PATCH] Debug Tools: ID Stack Tool: fixed misleading/unnecessary run of UpdateDebugToolStackQueries() on first frame. (#4631) `if (g.FrameCount != tool->LastActiveFrame + 1)` test failing on first frame. Was not harmful but probably confusing in a debugger. --- imgui_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_internal.h b/imgui_internal.h index 8bd05c326..29cfda0e7 100644 --- a/imgui_internal.h +++ b/imgui_internal.h @@ -2134,7 +2134,7 @@ struct ImGuiIDStackTool ImGuiTextBuffer ResultPathsBuf; ImGuiTextBuffer ResultTempBuf; - ImGuiIDStackTool() { memset(this, 0, sizeof(*this)); OptHexEncodeNonAsciiChars = true; CopyToClipboardLastTime = -FLT_MAX; } + ImGuiIDStackTool() { memset(this, 0, sizeof(*this)); LastActiveFrame = -1; OptHexEncodeNonAsciiChars = true; CopyToClipboardLastTime = -FLT_MAX; } }; //-----------------------------------------------------------------------------