mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 02:35:54 +08:00
Support the percent format for fill_density introduced in 1.1.x (forward compatibility). #1880
This commit is contained in:
parent
97d9c9f5e7
commit
2ac3b1fba9
@ -1279,6 +1279,9 @@ sub set {
|
|||||||
if ($opt_key eq 'gcode_flavor' && $value eq 'makerbot') {
|
if ($opt_key eq 'gcode_flavor' && $value eq 'makerbot') {
|
||||||
$value = 'makerware';
|
$value = 'makerware';
|
||||||
}
|
}
|
||||||
|
if ($opt_key eq 'fill_density' && $value =~ /^(.+?)%$/) {
|
||||||
|
$value = $1/100;
|
||||||
|
}
|
||||||
|
|
||||||
# For historical reasons, the world's full of configs having these very low values;
|
# For historical reasons, the world's full of configs having these very low values;
|
||||||
# to avoid unexpected behavior we need to ignore them. Banning these two hard-coded
|
# to avoid unexpected behavior we need to ignore them. Banning these two hard-coded
|
||||||
|
Loading…
x
Reference in New Issue
Block a user