Fixed SPE-1451

Branch Diameter = 0 or 1xxxx; result: slicer crash
Tip Diameter = 0 or 1xxxx;; result: slicer crash
fixed by limiting the diameters to 0.1 .. 100mm
This commit is contained in:
Vojtech Bubnik 2023-04-14 17:25:07 +02:00
parent 53d948f0d0
commit bb94e386d8

View File

@ -2908,7 +2908,8 @@ void PrintConfigDef::init_fff_params()
// TRN PrintSettings: "Organic supports" > "Tip Diameter"
def->tooltip = L("Branch tip diameter for organic supports.");
def->sidetext = L("mm");
def->min = 0;
def->min = 0.1f;
def->max = 100.f;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionFloat(0.8));
@ -2919,7 +2920,8 @@ void PrintConfigDef::init_fff_params()
def->tooltip = L("The diameter of the thinnest branches of organic support. Thicker branches are more sturdy. "
"Branches towards the base will be thicker than this.");
def->sidetext = L("mm");
def->min = 0;
def->min = 0.1f;
def->max = 100.f;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionFloat(2));