From 356637a627c9cce8d8cf9638380244bdd026af08 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Wed, 10 Apr 2019 12:16:17 +0200 Subject: [PATCH] Do not activate Delete command when the wipe tower is selected --- src/slic3r/GUI/Plater.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index cffec2062..78ed7fc91 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -3046,7 +3046,7 @@ void Plater::priv::set_bed_shape(const Pointfs& shape) bool Plater::priv::can_delete() const { - return !get_selection().is_empty(); + return !get_selection().is_empty() && !get_selection().is_wipe_tower(); } bool Plater::priv::can_delete_all() const @@ -3297,7 +3297,7 @@ void Plater::set_number_of_copies(/*size_t num*/) bool Plater::is_selection_empty() const { - return p->get_selection().is_empty(); + return p->get_selection().is_empty() || p->get_selection().is_wipe_tower(); } void Plater::cut(size_t obj_idx, size_t instance_idx, coordf_t z, bool keep_upper, bool keep_lower, bool rotate_lower)