mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-16 16:46:01 +08:00
Merge remote-tracking branch 'remotes/remi/master' into dev
This commit is contained in:
commit
c6331e4194
@ -4982,6 +4982,7 @@ std::string FullPrintConfig::validate()
|
|||||||
out_of_range = fopt->get_abs_value(1) < optdef->min || fopt->get_abs_value(1) > optdef->max;
|
out_of_range = fopt->get_abs_value(1) < optdef->min || fopt->get_abs_value(1) > optdef->max;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case coPercents:
|
||||||
case coFloats:
|
case coFloats:
|
||||||
for (double v : static_cast<const ConfigOptionVector<double>*>(opt)->values)
|
for (double v : static_cast<const ConfigOptionVector<double>*>(opt)->values)
|
||||||
if (v < optdef->min || v > optdef->max) {
|
if (v < optdef->min || v > optdef->max) {
|
||||||
@ -4989,13 +4990,6 @@ std::string FullPrintConfig::validate()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case coPercents:
|
|
||||||
for (double v : static_cast<const ConfigOptionVector<double>*>(opt)->values)
|
|
||||||
if (v*0.01 < optdef->min || v * 0.01 > optdef->max) {
|
|
||||||
out_of_range = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case coInt:
|
case coInt:
|
||||||
{
|
{
|
||||||
auto *iopt = static_cast<const ConfigOptionInt*>(opt);
|
auto *iopt = static_cast<const ConfigOptionInt*>(opt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user