FIX: a part with new color change to negative part

even though there is only one color, the wipe tower is still exist

Change-Id: I5c68a4ca7239cfc74aba452a6588d74f6d622f47
(cherry picked from commit 032c2e6718c65aa4c5b18eecd0ccce27f3f489bb)
This commit is contained in:
zhimin.zeng 2022-12-21 17:37:56 +08:00 committed by Lane.Wei
parent 1d04c35d0d
commit a6e3d63576
1 changed files with 6 additions and 0 deletions

View File

@ -2352,6 +2352,12 @@ bool ModelVolume::is_splittable() const
// BBS
std::vector<int> ModelVolume::get_extruders() const
{
if (m_type == ModelVolumeType::INVALID
|| m_type == ModelVolumeType::NEGATIVE_VOLUME
|| m_type == ModelVolumeType::SUPPORT_BLOCKER
|| m_type == ModelVolumeType::SUPPORT_ENFORCER)
return std::vector<int>();
if (mmu_segmentation_facets.timestamp() != mmuseg_ts) {
std::vector<indexed_triangle_set> its_per_type;
mmuseg_extruders.clear();