Limited brim width to 200 mm (larger values make slicer hang or crash due to arithmetic overflow)

This commit is contained in:
Lukas Matena 2021-07-15 09:55:25 +02:00
parent b5fea72618
commit 8c23678fa0

View File

@ -462,6 +462,7 @@ void PrintConfigDef::init_fff_params()
def->tooltip = L("Horizontal width of the brim that will be printed around each object on the first layer.");
def->sidetext = L("mm");
def->min = 0;
def->max = 200;
def->mode = comSimple;
def->set_default_value(new ConfigOptionFloat(0));