From 97bf2131e20e647417fa9a8c988b0fa082c7f0f7 Mon Sep 17 00:00:00 2001 From: omar Date: Mon, 23 Oct 2017 14:37:47 +0200 Subject: [PATCH] Fixed calling SetNextTreeNodeOpen() on a collapsed window leaking to next frame. --- imgui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index 239566c0..ab6b2906 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -6472,6 +6472,8 @@ float ImGui::GetTreeNodeToLabelSpacing() void ImGui::SetNextTreeNodeOpen(bool is_open, ImGuiCond cond) { ImGuiContext& g = *GImGui; + if (g.CurrentWindow->SkipItems) + return; g.SetNextTreeNodeOpenVal = is_open; g.SetNextTreeNodeOpenCond = cond ? cond : ImGuiCond_Always; }