Fixed a crash when slicing leads to no print.

Fixed a bug in TriangleMesh::bounding_box().
This commit is contained in:
bubnikv 2017-09-12 16:48:44 +02:00
parent b08d6f1969
commit 98408bbed0
4 changed files with 6 additions and 2 deletions

View file

@ -574,6 +574,7 @@ BoundingBoxf3
TriangleMesh::bounding_box() const
{
BoundingBoxf3 bb;
bb.defined = true;
bb.min.x = this->stl.stats.min.x;
bb.min.y = this->stl.stats.min.y;
bb.min.z = this->stl.stats.min.z;