SPE-2388: Do not export non printable instances to OBJ and STL files

This commit is contained in:
enricoturri1966 2024-07-15 11:46:43 +02:00 committed by Lukas Matena
parent aba835bc8c
commit 826ab3ce69

View File

@ -5555,6 +5555,8 @@ void Plater::export_stl_obj(bool extended, bool selection_only)
TriangleMesh vols_mesh(mesh);
mesh = TriangleMesh();
for (const ModelInstance* i : mo.instances) {
if (!i->is_printable())
continue;
TriangleMesh m = vols_mesh;
m.transform(i->get_matrix(), true);
mesh.merge(m);