mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 21:55:59 +08:00
SPE-2388: Do not export non printable instances to OBJ and STL files
This commit is contained in:
parent
aba835bc8c
commit
826ab3ce69
@ -5555,6 +5555,8 @@ void Plater::export_stl_obj(bool extended, bool selection_only)
|
|||||||
TriangleMesh vols_mesh(mesh);
|
TriangleMesh vols_mesh(mesh);
|
||||||
mesh = TriangleMesh();
|
mesh = TriangleMesh();
|
||||||
for (const ModelInstance* i : mo.instances) {
|
for (const ModelInstance* i : mo.instances) {
|
||||||
|
if (!i->is_printable())
|
||||||
|
continue;
|
||||||
TriangleMesh m = vols_mesh;
|
TriangleMesh m = vols_mesh;
|
||||||
m.transform(i->get_matrix(), true);
|
m.transform(i->get_matrix(), true);
|
||||||
mesh.merge(m);
|
mesh.merge(m);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user