From 3377043154e17ebe5f4c9a7e0b4e9c27b8469489 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Mon, 15 May 2023 14:05:23 +0200 Subject: [PATCH] SPE-1698 - Follow-up of 15bd82edc356c9aa19c940cc381c5544058ed391 - Fixed detection of out of printbed --- src/slic3r/GUI/GLCanvas3D.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 5d2e8c024..73a320983 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -1584,6 +1584,15 @@ bool GLCanvas3D::check_volumes_outside_state(const Slic3r::BuildVolume& build_vo } } + for (unsigned int vol_idx = 0; vol_idx < m_volumes.volumes.size(); ++vol_idx) { + if (std::find(volumes_idxs.begin(), volumes_idxs.end(), vol_idx) == volumes_idxs.end()) { + if (!m_volumes.volumes[vol_idx]->is_outside) { + contained_min_one = true; + break; + } + } + } + if (out_state != nullptr) *out_state = overall_state;