SPE-1698 - Follow-up of 15bd82edc3 - Fixed detection of out of printbed

This commit is contained in:
enricoturri1966 2023-05-15 14:05:23 +02:00
parent 15bd82edc3
commit 3377043154

View File

@ -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;