Fixed behaviour of infill wiping for multiple copies of an object

This commit is contained in:
Lukas Matena 2018-06-04 12:15:59 +02:00
parent d6c444fefa
commit 7c9d594ff6
2 changed files with 3 additions and 7 deletions

View file

@ -1191,7 +1191,7 @@ float Print::mark_wiping_infill(const ToolOrdering::LayerTools& layer_tools, uns
if (this_layer == nullptr)
continue;
for (unsigned int copy = 0; copy < objects[i]->copies().size(); ++copy) { // iterate through copies first, so that we mark neighbouring infills
for (unsigned int copy = 0; copy < objects[i]->_shifted_copies.size(); ++copy) { // iterate through copies first, so that we mark neighbouring infills
for (size_t region_id = 0; region_id < objects[i]->print()->regions.size(); ++ region_id) {
unsigned int region_extruder = objects[i]->print()->regions[region_id]->config.infill_extruder - 1; // config value is 1-based