From 24e77b14855455690747868d950f8ea75877eb0b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 25 Aug 2023 22:50:42 +0200 Subject: show light info below windows and menus --- editor/imgui.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'editor') diff --git a/editor/imgui.cpp b/editor/imgui.cpp index 0cbe5df7..6a41ec9a 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -152,7 +152,7 @@ void app::draw_clickables() void app::draw_light_info() { - ImDrawList& draw = *ImGui::GetForegroundDrawList(); + ImDrawList& draw = *ImGui::GetBackgroundDrawList(); const auto dpi = M->dpi_scale(); constexpr float font_size = 12; const auto& style = ImGui::GetStyle(); @@ -169,9 +169,6 @@ void app::draw_light_info() const auto dest = Math::Range2D(x.dest); const auto& e = static_cast(*x.e); - if (e.id == _popup_target.id) // TODO use z order instead - continue; - StringView falloff; switch (e.falloff) { -- cgit v1.2.3