From 777dc8c48b46051c2f097b3e8c7a1756d85b81d4 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 13 Sep 2017 15:52:51 +0200 Subject: [PATCH] Fixed a missing bbox.defined=true assignment. --- xs/src/libslic3r/GCode/PrintExtents.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xs/src/libslic3r/GCode/PrintExtents.cpp b/xs/src/libslic3r/GCode/PrintExtents.cpp index db33627ec..3c3f0f8d5 100644 --- a/xs/src/libslic3r/GCode/PrintExtents.cpp +++ b/xs/src/libslic3r/GCode/PrintExtents.cpp @@ -34,6 +34,7 @@ static inline BoundingBoxf extrusionentity_extents(const ExtrusionPath &extrusio if (! empty(bbox)) { bboxf.min = Pointf::new_unscale(bbox.min); bboxf.max = Pointf::new_unscale(bbox.max); + bboxf.defined = true; } return bboxf; } @@ -47,7 +48,8 @@ static inline BoundingBoxf extrusionentity_extents(const ExtrusionLoop &extrusio if (! empty(bbox)) { bboxf.min = Pointf::new_unscale(bbox.min); bboxf.max = Pointf::new_unscale(bbox.max); - } + bboxf.defined = true; + } return bboxf; } @@ -60,7 +62,8 @@ static inline BoundingBoxf extrusionentity_extents(const ExtrusionMultiPath &ext if (! empty(bbox)) { bboxf.min = Pointf::new_unscale(bbox.min); bboxf.max = Pointf::new_unscale(bbox.max); - } + bboxf.defined = true; + } return bboxf; }