Workaround for 3D view and GUI buttons not in synch when object's size is almost identical to print volume's size

This commit is contained in:
Enrico Turri 2018-04-23 15:03:38 +02:00
parent f8b1dc5506
commit cd3be74e3b
4 changed files with 29 additions and 4 deletions

View file

@ -522,7 +522,7 @@ std::string Print::validate() const
// Allow the objects to protrude below the print bed, only the part of the object above the print bed will be sliced.
print_volume.min.z = -1e10;
for (PrintObject *po : this->objects) {
if (! print_volume.contains(po->model_object()->tight_bounding_box(false)))
if (!print_volume.contains_quantized(po->model_object()->tight_bounding_box(false)))
return "Some objects are outside of the print volume.";
}