From 7a493cc04500d1168054a72ae9630c10d7455f7c Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Thu, 2 Mar 2023 15:54:37 +0100 Subject: [PATCH] SPE-1461: Added epsilon to max print height test. --- src/libslic3r/Print.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/Print.cpp b/src/libslic3r/Print.cpp index 8d3ad0066..a3eba0148 100644 --- a/src/libslic3r/Print.cpp +++ b/src/libslic3r/Print.cpp @@ -519,7 +519,7 @@ std::string Print::validate(std::string* warning) const const PrintObject &print_object = *m_objects[print_object_idx]; //FIXME It is quite expensive to generate object layers just to get the print height! if (auto layers = generate_object_layers(print_object.slicing_parameters(), layer_height_profile(print_object_idx)); - ! layers.empty() && layers.back() > this->config().max_print_height) { + ! layers.empty() && layers.back() > this->config().max_print_height + EPSILON) { return L("The print is taller than the maximum allowed height. You might want to reduce the size of your model" " or change current print settings and retry."); }