diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 8f51e10a4..bb8ce57bf 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -3533,8 +3533,6 @@ std::string GCode::extrude_loop(const ExtrusionLoop &original_loop, const std::s // extrude along the path std::string gcode; for (ExtrusionPaths::iterator path = paths.begin(); path != paths.end(); ++path) { -// description += ExtrusionLoop::role_to_string(loop.loop_role()); -// description += ExtrusionEntity::role_to_string(path->role); path->simplify(SCALED_RESOLUTION); gcode += this->_extrude(*path, description, speed); } @@ -3630,8 +3628,6 @@ std::string GCode::extrude_multi_path(const ExtrusionMultiPath &multipath, const // extrude along the path std::string gcode; for (ExtrusionPath path : multipath.paths) { -// description += ExtrusionLoop::role_to_string(loop.loop_role()); -// description += ExtrusionEntity::role_to_string(path->role); path.simplify(SCALED_RESOLUTION); gcode += this->_extrude(path, description, speed); } diff --git a/src/libslic3r/PerimeterGenerator.cpp b/src/libslic3r/PerimeterGenerator.cpp index f61bd41d2..3adc134b6 100644 --- a/src/libslic3r/PerimeterGenerator.cpp +++ b/src/libslic3r/PerimeterGenerator.cpp @@ -275,7 +275,6 @@ void PerimeterGenerator::process() if (!unsupported_filtered.empty()) { - //add this directly to the infill list. // this will avoid to throw wrong offsets into a good polygons this->fill_surfaces->append( @@ -303,9 +302,7 @@ void PerimeterGenerator::process() } else { surface->expolygon = last[0]; for (size_t idx = 1; idx < last.size(); idx++) { - Surface new_surf = *surface; - new_surf.expolygon = last[idx]; - all_surfaces.push_back(new_surf); + all_surfaces.emplace_back(*surface, last[idx]); } } }