From 8f26cd7619bed295f114ac279d6d63169086b400 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sat, 16 Dec 2017 23:36:33 -0600 Subject: [PATCH] Caught another use of z steps per mm that needs to be clear in its application. Fixes #4235 --- xs/src/libslic3r/PrintObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/src/libslic3r/PrintObject.cpp b/xs/src/libslic3r/PrintObject.cpp index 5555d63e5..4cb2d2759 100644 --- a/xs/src/libslic3r/PrintObject.cpp +++ b/xs/src/libslic3r/PrintObject.cpp @@ -690,7 +690,7 @@ std::vector PrintObject::generate_object_layers(coordf_t first_layer_h this->_model_object->layer_height_spline = this->layer_height_spline; // apply z-gradation (this is redundant for static layer height...) - coordf_t gradation = 1 / this->_print->config.z_steps_per_mm * 4; + coordf_t gradation = 1.0 / (this->_print->config.z_steps_per_mm * 4.0); if(this->_print->config.z_steps_per_mm > 0) { coordf_t last_z = 0; coordf_t height;