Tech ENABLE_WIPETOWER_OBJECTID_1000_REMOVAL set as default

This commit is contained in:
enricoturri1966 2022-10-19 08:52:35 +02:00
parent 53e9a8f687
commit 71660a281b
8 changed files with 5 additions and 145 deletions
src/slic3r/GUI

View file

@ -1960,15 +1960,9 @@ void ObjectList::del_layers_from_object(const int obj_idx)
bool ObjectList::del_subobject_from_object(const int obj_idx, const int idx, const int type)
{
assert(idx >= 0);
#if ENABLE_WIPETOWER_OBJECTID_1000_REMOVAL
if (m_objects->empty() || int(m_objects->size()) <= obj_idx)
// Cannot delete a wipe tower
return false;
#else
if (obj_idx == 1000 || idx<0)
// Cannot delete a wipe tower or volume with negative id
return false;
#endif // ENABLE_WIPETOWER_OBJECTID_1000_REMOVAL
ModelObject* object = (*m_objects)[obj_idx];