Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
supermerill committed Aug 27, 2020
1 parent a1ece75 commit 06d2b9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/slic3r/GUI/FreeCADDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 06d2b9b

Please sign in to comment.