Fixed crash when Arachne produced empty output.

This commit is contained in:
Lukáš Hejl 2022-04-28 10:03:08 +02:00
parent d868261399
commit 9896721bc8

View File

@ -321,6 +321,9 @@ void PerimeterGenerator::process_arachne()
wallToolPaths.generate(); wallToolPaths.generate();
std::vector<Arachne::VariableWidthLines> perimeters = wallToolPaths.getToolPaths(); std::vector<Arachne::VariableWidthLines> perimeters = wallToolPaths.getToolPaths();
if (perimeters.empty())
continue;
int start_perimeter = int(perimeters.size()) - 1; int start_perimeter = int(perimeters.size()) - 1;
int end_perimeter = -1; int end_perimeter = -1;
int direction = -1; int direction = -1;