From 36b547cf2bb739037471ed7556709bfb293bbcfa Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Tue, 23 Apr 2024 18:40:24 +0800 Subject: [PATCH] FIX:not init m_current_active_imgui_id in gizmo assembly jira: none Change-Id: I694f4fc54c2d6be7b4cc21265f00387d343dfb88 --- src/slic3r/GUI/Gizmos/GLGizmoAssembly.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoAssembly.cpp b/src/slic3r/GUI/Gizmos/GLGizmoAssembly.cpp index 2fcdd3a21..893c2175d 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoAssembly.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoAssembly.cpp @@ -66,7 +66,7 @@ void GLGizmoAssembly::on_render_input_window(float x, float y, float bottom_limi if (m_editing_distance) return; - unsigned int current_active_id = ImGui::GetActiveID(); + m_current_active_imgui_id = ImGui::GetActiveID(); // adjust window position to avoid overlap the view toolbar const float win_h = ImGui::GetWindowHeight(); y = std::min(y, bottom_limit - win_h); @@ -120,7 +120,7 @@ void GLGizmoAssembly::on_render_input_window(float x, float y, float bottom_limi last_selected_features = m_selected_features; m_imgui->set_requires_extra_frame(); } - m_last_active_item_imgui = current_active_id; + m_last_active_item_imgui = m_current_active_imgui_id; GizmoImguiEnd(); // Orca ImGuiWrapper::pop_toolbar_style();