diff --git a/imgui.cpp b/imgui.cpp index e8033cb..02635a4 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -3992,6 +3992,7 @@ ImGuiWindow* window = GetCurrentWindow(); if (window->SkipItems) return; + const ImGuiStyle& style = g.Style; const float w = ImGui::CalcItemWidth(); @@ -4536,6 +4537,10 @@ // If returning 'true' the node is open and the user is responsible for calling TreePop bool ImGui::TreeNodeV(const char* str_id, const char* fmt, va_list args) { + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + static char buf[1024]; ImFormatStringV(buf, IM_ARRAYSIZE(buf), fmt, args); @@ -4564,6 +4569,10 @@ // If returning 'true' the node is open and the user is responsible for calling TreePop bool ImGui::TreeNodeV(const void* ptr_id, const char* fmt, va_list args) { + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + static char buf[1024]; ImFormatStringV(buf, IM_ARRAYSIZE(buf), fmt, args);