Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsupermerill <merill@fr.fr>2020-08-27 18:27:20 +0300
committersupermerill <merill@fr.fr>2020-08-27 18:27:20 +0300
commit06d2b9b2d0a5c823677aba1fb33d3e466aff351f (patch)
treea4042525a4cb3f00ff071483b084ae9db334666b
parenta1ece7579db2f5a85e82f7eafe4948dffd08142f (diff)
fix build2.2.53.1
-rw-r--r--src/slic3r/GUI/FreeCADDialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slic3r/GUI/FreeCADDialog.cpp b/src/slic3r/GUI/FreeCADDialog.cpp
index ae4d0187a..86934ef70 100644
--- a/src/slic3r/GUI/FreeCADDialog.cpp
+++ b/src/slic3r/GUI/FreeCADDialog.cpp
@@ -945,8 +945,9 @@ void FreeCADDialog::create_geometry(wxCommandEvent& event_args) {
std::stringstream ss; ss << "plater_" << idx_plater_obj << ".stl";
boost::filesystem::path temp_stl(Slic3r::data_dir());
temp_stl = temp_stl / "temp" / ss.str();
+ TriangleMesh mesh = (idx_plater_obj == 0) ? this->main_frame->plater()->model().mesh() : this->main_frame->plater()->model().objects[idx_plater_obj - 1]->mesh();
Slic3r::store_stl(temp_stl.generic_string().c_str(),
- (idx_plater_obj == 0) ? &this->main_frame->plater()->model().mesh() : &this->main_frame->plater()->model().objects[idx_plater_obj-1]->mesh(),
+ &mesh,
true);
} else {
m_errors->AppendText("Error, cannot find object " + std::to_string(idx_plater_obj)