Fixed a typo in 02c18dbc52.

Id of the WipeTower is equal to 1000
This commit is contained in:
YuSanka 2021-11-22 09:52:02 +01:00
parent 1b7975639e
commit 93bd5ee08b

View file

@ -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())) {