SPE-2388: Fixed command 'Export Plate as STL/OBJ &Including Supports' which was exporting also non sliced objects

This commit is contained in:
enricoturri1966 2024-06-28 12:03:04 +02:00 committed by Lukas Matena
parent a91a7d6b0e
commit aba835bc8c

View File

@ -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();