FIX: can not set 0 wall on arachne mode

Jira: none

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Iaf84d5bd6cb58dbcdfe30ad81aeda33c19a89421
This commit is contained in:
qing.zhang 2024-05-21 14:26:41 +08:00 committed by Lane.Wei
parent 3d1f1ef858
commit 61481700a4

View File

@ -1671,7 +1671,7 @@ void PerimeterGenerator::process_arachne()
}
int remain_loops = -1;
if (this->object_config->top_one_wall_type == TopOneWallType::Alltop) {
if (loop_number > 0 && this->object_config->top_one_wall_type == TopOneWallType::Alltop) {
if (this->upper_slices != nullptr)
remain_loops = loop_number - 1;