From 93bd5ee08bae1e57a1bebbf9ac31324ad89fd219 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Mon, 22 Nov 2021 09:52:02 +0100 Subject: [PATCH] Fixed a typo in 02c18dbc521ef33c2e23a3996c50ee60eecf8d2a. Id of the WipeTower is equal to 1000 --- 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 7e563eb953..32aca2d635 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -1214,7 +1214,7 @@ void Sidebar::show_info_sizer() ModelObjectPtrs objects = p->plater->model().objects; int obj_idx = selection.get_object_idx(); - if (m_mode < comExpert || objects.empty() || obj_idx < 0 || obj_idx > 1000 || + if (m_mode < comExpert || objects.empty() || obj_idx < 0 || obj_idx == 1000 || objects[obj_idx]->volumes.empty() || // hack to avoid crash when deleting the last object on the bed (selection.is_single_full_object() && objects[obj_idx]->instances.size()> 1) || !(selection.is_single_full_instance() || selection.is_single_volume())) {