diff --git a/src/slic3r/GUI/GLGizmo.cpp b/src/slic3r/GUI/GLGizmo.cpp index 83066994b..36c0cc3bb 100644 --- a/src/slic3r/GUI/GLGizmo.cpp +++ b/src/slic3r/GUI/GLGizmo.cpp @@ -166,7 +166,9 @@ GLGizmoBase::GLGizmoBase(GLCanvas3D& parent) #endif // ENABLE_GIZMOS_SHORTCUT , m_hover_id(-1) , m_dragging(false) +#if ENABLE_IMGUI , m_imgui(wxGetApp().imgui()) +#endif // ENABLE_IMGUI { ::memcpy((void*)m_base_color, (const void*)DEFAULT_BASE_COLOR, 3 * sizeof(float)); ::memcpy((void*)m_drag_color, (const void*)DEFAULT_DRAG_COLOR, 3 * sizeof(float)); diff --git a/src/slic3r/GUI/GLGizmo.hpp b/src/slic3r/GUI/GLGizmo.hpp index 2f7b2e208..a229e44c7 100644 --- a/src/slic3r/GUI/GLGizmo.hpp +++ b/src/slic3r/GUI/GLGizmo.hpp @@ -25,7 +25,9 @@ class ModelObject; namespace GUI { class GLCanvas3D; +#if ENABLE_IMGUI class ImGuiWrapper; +#endif // ENABLE_IMGUI class GLGizmoBase { @@ -91,7 +93,9 @@ protected: float m_drag_color[3]; float m_highlight_color[3]; mutable std::vector m_grabbers; +#if ENABLE_IMGUI ImGuiWrapper* m_imgui; +#endif // ENABLE_IMGUI public: explicit GLGizmoBase(GLCanvas3D& parent);