From 9896721bc89bd6894837285ecb91a1453c307d03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hejl?= Date: Thu, 28 Apr 2022 10:03:08 +0200 Subject: [PATCH] Fixed crash when Arachne produced empty output. --- src/libslic3r/PerimeterGenerator.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libslic3r/PerimeterGenerator.cpp b/src/libslic3r/PerimeterGenerator.cpp index 76364c5c8..00b1f1abf 100644 --- a/src/libslic3r/PerimeterGenerator.cpp +++ b/src/libslic3r/PerimeterGenerator.cpp @@ -321,6 +321,9 @@ void PerimeterGenerator::process_arachne() wallToolPaths.generate(); std::vector perimeters = wallToolPaths.getToolPaths(); + if (perimeters.empty()) + continue; + int start_perimeter = int(perimeters.size()) - 1; int end_perimeter = -1; int direction = -1;