From 4bc0d1dee2567a5649cfbb209ddd401825f22434 Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Thu, 8 Dec 2022 15:20:40 +0100 Subject: [PATCH] Disallow float window --- src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp index 9c8a6acfb..f63183189 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp @@ -55,6 +55,7 @@ #define SHOW_FINE_POSITION // draw convex hull around volume #define SHOW_WX_WEIGHT_INPUT #define DRAW_PLACE_TO_ADD_TEXT // Interactive draw of window position +#define ALLOW_FLOAT_WINDOW #endif // ALLOW_DEBUG_MODE using namespace Slic3r; @@ -1355,6 +1356,7 @@ void GLGizmoEmboss::draw_window() ImGui::Image(atlas.TexID, ImVec2(atlas.TexWidth, atlas.TexHeight)); #endif // SHOW_IMGUI_ATLAS +#ifdef ALLOW_FLOAT_WINDOW ImGui::SameLine(); if (ImGui::Checkbox("##allow_float_window", &m_allow_float_window)) { if (m_allow_float_window) @@ -1364,6 +1366,7 @@ void GLGizmoEmboss::draw_window() _u8L("Fix settings possition"): _u8L("Allow floating window near text")).c_str()); } +#endif // ALLOW_FLOAT_WINDOW ImGui::SameLine(); if (ImGui::Button("use")) {