From d27b8a933e8cc318d7bbdd8acc7d9d8aef943ce6 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sun, 17 Dec 2017 19:41:15 -0600 Subject: [PATCH] Revert "Ensure order of operations for calculating min_dz, also apply adjustment to first layer height." This reverts commit e0a82eee3de44eb83dcd8bdf729b29457ddeac6a. --- xs/src/libslic3r/PrintObject.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xs/src/libslic3r/PrintObject.cpp b/xs/src/libslic3r/PrintObject.cpp index 5555d63e5..b6848082b 100644 --- a/xs/src/libslic3r/PrintObject.cpp +++ b/xs/src/libslic3r/PrintObject.cpp @@ -548,7 +548,7 @@ coordf_t PrintObject::adjust_layer_height(coordf_t layer_height) const { coordf_t result = layer_height; if(this->_print->config.z_steps_per_mm > 0) { - coordf_t min_dz = 1.0 / (this->_print->config.z_steps_per_mm * 4); + coordf_t min_dz = 1 / this->_print->config.z_steps_per_mm * 4; result = int(layer_height / min_dz + 0.5) * min_dz; } @@ -578,7 +578,6 @@ std::vector PrintObject::generate_object_layers(coordf_t first_layer_h // respect first layer height if(first_layer_height) { - first_layer_height = this->adjust_layer_height(first_layer_height); result.push_back(first_layer_height); }