From 4be6c17fd358d19e8fce0766a85b081f9315afe5 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 21 Mar 2019 14:56:20 +0100 Subject: [PATCH] Limit number of perimeters to 10 thousands, that is 50 meters with 0.2mm nozzle. The number of perimeters has to be limited due to a numerical overflow of fixed point 32bit coordinates in the offsetting algorithm. --- src/libslic3r/PrintConfig.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index 8c67cc067..630dbfb5f 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -1375,6 +1375,7 @@ void PrintConfigDef::init_fff_params() def->sidetext = L("(minimum)"); def->aliases = { "perimeter_offsets" }; def->min = 0; + def->max = 10000; def->default_value = new ConfigOptionInt(3); def = this->add("post_process", coStrings);