fix first_layer_size_compensation

fix 4028cd2a1b7d7eb33c8e2be38b84069fd633abd1
supermerill/SuperSlicer#1547
This commit is contained in:
supermerill 2021-09-27 15:23:40 +02:00
parent a67a862dc1
commit 73f4f4783b

View File

@ -2629,7 +2629,7 @@ namespace Slic3r {
// Only enable Elephant foot compensation if printing directly on the print bed.
first_layer_compensation = float(scale_(m_config.first_layer_size_compensation.value));
// reduce first_layer_compensation for every layer over the first one.
first_layer_compensation = (first_layers - layer_id + 1) * first_layer_compensation / float(first_layers);
first_layer_compensation = (first_layers - layer_id) * first_layer_compensation / float(first_layers);
// simplify compensations if possible
if (first_layer_compensation > 0) {
outter_delta += first_layer_compensation;