Преглед на файлове

Fixed calling SetNextTreeNodeOpen() on a collapsed window leaking to next frame.

omar преди 7 години
родител
ревизия
97bf2131e2
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      imgui.cpp

+ 2 - 0
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;
 }