SPE-1461: Added epsilon to max print height test.

This commit is contained in:
Vojtech Bubnik 2023-03-02 15:54:37 +01:00
parent c7dbb0e18c
commit 7a493cc045

View File

@ -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.");
}