mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-31 20:02:02 +08:00
fix build
This commit is contained in:
parent
a1ece7579d
commit
06d2b9b2d0
@ -945,8 +945,9 @@ void FreeCADDialog::create_geometry(wxCommandEvent& event_args) {
|
|||||||
std::stringstream ss; ss << "plater_" << idx_plater_obj << ".stl";
|
std::stringstream ss; ss << "plater_" << idx_plater_obj << ".stl";
|
||||||
boost::filesystem::path temp_stl(Slic3r::data_dir());
|
boost::filesystem::path temp_stl(Slic3r::data_dir());
|
||||||
temp_stl = temp_stl / "temp" / ss.str();
|
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(),
|
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);
|
true);
|
||||||
} else {
|
} else {
|
||||||
m_errors->AppendText("Error, cannot find object " + std::to_string(idx_plater_obj)
|
m_errors->AppendText("Error, cannot find object " + std::to_string(idx_plater_obj)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user