mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 06:42:05 +08:00
Number of X is better done with < and not doing the -1 in C++
This commit is contained in:
parent
0c883b526c
commit
d4191a96b8
@ -501,7 +501,7 @@ PrintGCode::process_layer(size_t idx, const Layer* layer, const Points& copies)
|
|||||||
const auto& bbox {layer_slices_bb.at(i)};
|
const auto& bbox {layer_slices_bb.at(i)};
|
||||||
return bbox.contains(point) && layer->slices.at(i).contour.contains(point);
|
return bbox.contains(point) && layer->slices.at(i).contour.contains(point);
|
||||||
}};
|
}};
|
||||||
const auto n_slices {layer->slices.size() - 1};
|
const auto n_slices {layer->slices.size()};
|
||||||
|
|
||||||
for (auto region_id = 0U; region_id < print.regions.size(); ++region_id) {
|
for (auto region_id = 0U; region_id < print.regions.size(); ++region_id) {
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user