Fix of "When exporting plate as STL Files are saved as 1KB and corrupted #1536"

This is a regression issue, and it only happened when exporting the plater.
This commit is contained in:
bubnikv 2019-01-02 18:36:48 +01:00
parent 4227499534
commit c4d5c7cefd

View file

@ -3045,7 +3045,7 @@ void Plater::export_stl(bool selection_only)
if (obj_idx == -1) { return; }
mesh = p->model.objects[obj_idx]->mesh();
} else {
auto mesh = p->model.mesh();
mesh = p->model.mesh();
}
Slic3r::store_stl(path_u8.c_str(), &mesh, true);