diff --git a/src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp b/src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp index 6da0d6b878..f1fd4761c9 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp @@ -40,6 +40,7 @@ using namespace Slic3r::GUI::Emboss; GLGizmoSVG::GLGizmoSVG(GLCanvas3D &parent) : GLGizmoBase(parent, M_ICON_FILENAME, -3) + , m_gui_cfg(nullptr) , m_rotate_gizmo(parent, GLGizmoRotate::Axis::Z) // grab id = 2 (Z axis) { m_rotate_gizmo.set_group_id(0); diff --git a/src/slic3r/GUI/Gizmos/GLGizmoSVG.hpp b/src/slic3r/GUI/Gizmos/GLGizmoSVG.hpp index 7ff6c8225c..42785759f7 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoSVG.hpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoSVG.hpp @@ -130,7 +130,7 @@ private: bool on_mouse_for_translate(const wxMouseEvent &mouse_event); struct GuiCfg; - std::unique_ptr m_gui_cfg = nullptr; + std::unique_ptr m_gui_cfg; // actual selected only one volume - with emboss data ModelVolume *m_volume = nullptr;