mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-01 08:28:42 +03:00
fix bug of libslic3r
This commit is contained in:
@@ -423,21 +423,6 @@ static std::vector<std::vector<ExPolygons>> slices_to_regions(
|
||||
});
|
||||
}
|
||||
|
||||
//Y23
|
||||
for (const std::unique_ptr<PrintRegion>& pr : print_object_regions.all_regions) {
|
||||
if (pr.get()) {
|
||||
std::vector<ExPolygons>& region_polys = slices_by_region[pr->print_object_region_id()];
|
||||
const size_t extruder_id = pr->extruder(FlowRole::frPerimeter) - 1;
|
||||
double scale = print_config.filament_shrink.values[extruder_id] * 0.01;
|
||||
if (scale != 1) {
|
||||
scale = 1 / scale;
|
||||
for (ExPolygons& polys : region_polys)
|
||||
for (ExPolygon& poly : polys)
|
||||
poly.scale(scale);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return slices_by_region;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user