diff --git a/src/libslic3r/PerimeterGenerator.cpp b/src/libslic3r/PerimeterGenerator.cpp index d37ff7f1d6..a112336175 100644 --- a/src/libslic3r/PerimeterGenerator.cpp +++ b/src/libslic3r/PerimeterGenerator.cpp @@ -1729,7 +1729,7 @@ void PerimeterGenerator::process_classic() int sparse_infill_density = this->config->sparse_infill_density.value; if (this->config->alternate_extra_wall && this->layer_id % 2 == 1 && !m_spiral_vase && sparse_infill_density > 0) // add alternating extra wall loop_number++; - if (this->layer_id == 0 && this->config->only_one_wall_first_layer) + if (this->layer_id == object_config->raft_layers && this->config->only_one_wall_first_layer) loop_number = 0; // Set the topmost layer to be one wall if (loop_number > 0 && config->only_one_wall_top && this->upper_slices == nullptr) @@ -2646,7 +2646,7 @@ void PerimeterGenerator::process_arachne() loop_number++; // Set the bottommost layer to be one wall - const bool is_bottom_layer = (this->layer_id == 0) ? true : false; + const bool is_bottom_layer = (this->layer_id == object_config->raft_layers) ? true : false; if (is_bottom_layer && this->config->only_one_wall_first_layer) loop_number = 0;