From 55c174f3708cd82ef88ef82b2b4d5fe8ef3f17df Mon Sep 17 00:00:00 2001 From: bubnikv Date: Fri, 7 Feb 2020 14:43:05 +0100 Subject: [PATCH] Fix of the previous commit: Fixed sequential print unit tests. --- 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 c869ad29848..3bac404d3dd 100644 --- a/src/libslic3r/Print.cpp +++ b/src/libslic3r/Print.cpp @@ -1202,7 +1202,7 @@ static inline bool sequential_print_vertical_clearance_valid(const Print &print) auto it = std::max_element(print_instances_ordered.begin(), print_instances_ordered.end(), [](auto l, auto r) { return l->print_object->height() < r->print_object->height(); }); - return it == print_instances_ordered.end() || (*it)->print_object->height() < scale_(print.config().extruder_clearance_height.value); + return it == print_instances_ordered.end() || (*it)->print_object->height() <= scale_(print.config().extruder_clearance_height.value); } // Precondition: Print::validate() requires the Print::apply() to be called its invocation.