diff --git a/src/slic3r/GUI/Gizmos/GLGizmoHollow.cpp b/src/slic3r/GUI/Gizmos/GLGizmoHollow.cpp index b97a6f4bce..5f3430a784 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoHollow.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoHollow.cpp @@ -62,6 +62,14 @@ void GLGizmoHollow::set_sla_support_data(ModelObject*, const Selection&) update_clipping_plane(m_c->m_clipping_plane_was_moved); + // This is a temporary and not very nice hack, to make sure that + // if the cp was moved by the data returned by backend, it will + // remember its direction. FIXME: Refactor this mess and make + // the clipping plane itself part of the shared data. + if (! m_c->m_clipping_plane_was_moved && m_c->m_clipping_plane_distance == 0.25f) + m_c->m_clipping_plane_was_moved = true; + + if (m_c->m_model_object) { reload_cache(); if (m_c->has_drilled_mesh())