From a1e37803f75b5cee1c8e3e5e976e934f5a972b97 Mon Sep 17 00:00:00 2001 From: Michael Kirsch Date: Fri, 8 Jul 2022 21:52:43 +0200 Subject: [PATCH] fix frustum for off-bed origins --- src/slic3r/GUI/3DBed.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/3DBed.cpp b/src/slic3r/GUI/3DBed.cpp index 8dff7bc499..4319a28cf1 100644 --- a/src/slic3r/GUI/3DBed.cpp +++ b/src/slic3r/GUI/3DBed.cpp @@ -342,6 +342,8 @@ BoundingBoxf3 Bed3D::calc_extended_bounding_box() const // Reset the build volume Z, we don't want to zoom to the top of the build volume if it is empty. out.min.z() = 0.0; out.max.z() = 0.0; + // extend to origin in case origin is off bed + out.merge(m_axes.get_origin()); // extend to contain axes out.merge(m_axes.get_origin() + m_axes.get_total_length() * Vec3d::Ones()); #if ENABLE_WORLD_COORDINATE