fix curve_smoothing return value.

This commit is contained in:
supermerill 2020-04-17 19:25:41 +02:00
parent a6b055b484
commit a6c011fbef

View File

@ -2537,8 +2537,6 @@ Polygon _smooth_curve(Polygon &p, double max_angle, double min_angle_convex, dou
} }
ExPolygons PrintObject::_smooth_curves(const ExPolygons & input, const PrintRegionConfig &conf) const { ExPolygons PrintObject::_smooth_curves(const ExPolygons & input, const PrintRegionConfig &conf) const {
if (conf.curve_smoothing_precision.value > 0.f) {
ExPolygons new_polys; ExPolygons new_polys;
for (const ExPolygon &ex_poly : input) { for (const ExPolygon &ex_poly : input) {
ExPolygon new_ex_poly(ex_poly); ExPolygon new_ex_poly(ex_poly);
@ -2562,7 +2560,6 @@ ExPolygons PrintObject::_smooth_curves(const ExPolygons & input, const PrintRegi
} }
return new_polys; return new_polys;
} }
}
// To be used only if there are no layer span specific configurations applied, which would lead to z ranges being generated for this region. // To be used only if there are no layer span specific configurations applied, which would lead to z ranges being generated for this region.
std::vector<ExPolygons> PrintObject::slice_region(size_t region_id, const std::vector<float> &z, SlicingMode mode) const std::vector<ExPolygons> PrintObject::slice_region(size_t region_id, const std::vector<float> &z, SlicingMode mode) const