From c4d5c7cefd92590a731be55800405f3590a20bbf Mon Sep 17 00:00:00 2001 From: bubnikv <bubnikv@gmail.com> Date: Wed, 2 Jan 2019 18:36:48 +0100 Subject: [PATCH] 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. --- 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 f3722593c..668c5559a 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -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);