From 7df4cfb45334e0773a1f9591884febdda6d9aa17 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Thu, 23 Mar 2023 12:27:07 +0100 Subject: [PATCH] Fixed a crash when selection wipe tower and using add instance function: this was between 2.6.0-alpha3 and 2.6.0-alpha4 in 4d5b85e. --- src/slic3r/GUI/Plater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index a64de49eec..5c8677d0a5 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -4779,7 +4779,7 @@ bool Plater::priv::can_increase_instances() const if (q->canvas3D()->get_gizmos_manager().get_current_type() == GLGizmosManager::Emboss) return false; const auto obj_idxs = get_selection().get_object_idxs(); - return !obj_idxs.empty() && !sidebar->obj_list()->has_selected_cut_object(); + return !obj_idxs.empty() && !get_selection().is_wipe_tower() && !sidebar->obj_list()->has_selected_cut_object(); } bool Plater::priv::can_decrease_instances(int obj_idx /*= -1*/) const