From b45c80b8db6d43d5510ab1bb2b722f7cbeff1e83 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Fri, 1 Mar 2019 15:03:58 +0100 Subject: [PATCH] Fixed the 'remove all points' button in sla gizmo (was only working in editing mode) --- src/slic3r/GUI/GLGizmo.cpp | 11 +++++------ src/slic3r/GUI/GLGizmo.hpp | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/slic3r/GUI/GLGizmo.cpp b/src/slic3r/GUI/GLGizmo.cpp index 53c82ce80..4095782c8 100644 --- a/src/slic3r/GUI/GLGizmo.cpp +++ b/src/slic3r/GUI/GLGizmo.cpp @@ -2178,13 +2178,10 @@ bool GLGizmoSlaSupports::mouse_event(SLAGizmoEventType action, const Vec2d& mous return false; } -void GLGizmoSlaSupports::delete_selected_points() +void GLGizmoSlaSupports::delete_selected_points(bool force) { - if (!m_editing_mode) - return; - for (unsigned int idx=0; idx