Fix for #10850 - Problems with negative volumes when cutting the object

This commit is contained in:
YuSanka 2024-03-06 14:56:01 +01:00 committed by Lukas Matena
parent 9116db53c0
commit 0e4691964e

View File

@ -1893,7 +1893,7 @@ GLGizmoCut3D::PartSelection::PartSelection(const ModelObject* mo, const Transfor
// split to parts
for (int id = int(volumes.size())-1; id >= 0; id--)
if (volumes[id]->is_splittable())
if (volumes[id]->is_splittable() && volumes[id]->is_model_part()) // we have to split just solid volumes
volumes[id]->split(1);
m_parts.clear();