From aba835bc8c6b57239ad16029de9f704c44557e60 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Fri, 28 Jun 2024 12:03:04 +0200 Subject: [PATCH] SPE-2388: Fixed command 'Export Plate as STL/OBJ &Including Supports' which was exporting also non sliced objects --- src/slic3r/GUI/Plater.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index cd1166f71a..ef925ed2b2 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -5570,8 +5570,10 @@ void Plater::export_stl_obj(bool extended, bool selection_only) const SLAPrintObject *object = this->p->sla_print.get_print_object_by_model_object_id(mo.id()); - if (!object || !object->get_mesh_to_print() || object->get_mesh_to_print()->empty()) - mesh = mesh_to_export_fff(mo, instance_id); + if (!object || !object->get_mesh_to_print() || object->get_mesh_to_print()->empty()) { + if (!extended) + mesh = mesh_to_export_fff(mo, instance_id); + } else { const Transform3d mesh_trafo_inv = object->trafo().inverse(); const bool is_left_handed = object->is_left_handed();