From c5dacee3a7a4b996d393205c43ecff01257cc52d Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 18 Aug 2014 13:18:32 +0100 Subject: [PATCH] Undo Begin() return false with Alpha==0.0, misleading at the moment --- imgui.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/imgui.cpp b/imgui.cpp index ebf2e9c0..30a9068b 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2183,9 +2183,7 @@ bool Begin(const char* name, bool* open, ImVec2 size, float fill_alpha, ImGuiWin } // Return collapsed so that user can perform an early out optimisation - const bool hidden = g.Style.Alpha <= 0.0f; - const bool collapsed = window->Collapsed; - return hidden || !collapsed; + return !window->Collapsed; } void End()