From be0764da145d5bc722f0ddf398ef892e388cd6c9 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Wed, 7 Jun 2023 14:38:00 +0200 Subject: [PATCH] Fix STL export when object doesn't fit the print bed. --- src/slic3r/GUI/Plater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 5e987d666..0614c4446 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -6477,7 +6477,7 @@ 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 (auto m = object->get_mesh_to_print(); !m || m->empty()) + if (!object || !object->get_mesh_to_print() || object->get_mesh_to_print()->empty()) mesh = mesh_to_export_fff(mo, instance_id); else { const Transform3d mesh_trafo_inv = object->trafo().inverse();