From 21ddcb84871543516c2c9134ffc472e851915019 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 12 Jun 2017 14:33:33 +0200 Subject: [PATCH] Fix of a layer height test to allow / disable the wipe tower. --- xs/src/libslic3r/Print.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/src/libslic3r/Print.cpp b/xs/src/libslic3r/Print.cpp index e570abc4c..14c876809 100644 --- a/xs/src/libslic3r/Print.cpp +++ b/xs/src/libslic3r/Print.cpp @@ -582,7 +582,7 @@ std::string Print::validate() const bool was_layer_height_profile_valid = object->layer_height_profile_valid; object->update_layer_height_profile(); object->layer_height_profile_valid = was_layer_height_profile_valid; - for (size_t i = 1; i < object->layer_height_profile.size(); i += 2) + for (size_t i = 5; i < object->layer_height_profile.size(); i += 2) if (object->layer_height_profile[i-1] > slicing_params.object_print_z_min + EPSILON && std::abs(object->layer_height_profile[i] - object->config.layer_height) > EPSILON) return "The Wipe Tower is currently only supported with constant Z layer spacing. Layer editing is not allowed.";