mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 02:55:55 +08:00
Use < instead of <=, avoids a infinite loop.
This commit is contained in:
parent
b97478a2dd
commit
86d588d605
@ -1460,7 +1460,7 @@ PrintObject::_discover_neighbor_horizontal_shells(LayerRegion* layerm, const siz
|
||||
auto* print {this->print()};
|
||||
const auto& region_config {layerm->region()->config};
|
||||
|
||||
for (int n = (type == stTop ? i-1 : i+1); std::abs(n-int(i)) <= solid_layers-1; (type == stTop ? n-- : n++)) {
|
||||
for (int n = (type == stTop ? i-1 : i+1); std::abs(n-int(i)) < solid_layers; (type == stTop ? n-- : n++)) {
|
||||
if (n < 0 || n >= this->layer_count()) continue;
|
||||
Slic3r::Log::debug("PrintObject") << " looking for neighbors on layer " << n << "...\n";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user