Fix of "infill percentage not changing #5993"

Fix of aa4c018cd5
Infill is a percent, which is a number from 0 to 100, not from 0 to 1.
This commit is contained in:
Vojtech Bubnik 2021-02-08 11:39:30 +01:00
parent d001195ebd
commit cbee82dc95

View file

@ -1606,7 +1606,7 @@ PrintRegionConfig PrintObject::region_config_from_model_volume(const PrintRegion
// See GH issue #5910.
config.fill_density.value = 0;
else
config.fill_density.value = std::min(config.fill_density.value, 1.);
config.fill_density.value = std::min(config.fill_density.value, 100.);
return config;
}