Fixed issues when rendering shells of painted objects

This commit is contained in:
Lukas Matena 2024-06-10 09:54:05 +02:00
parent 46bb8e5ac6
commit f5b35950a7

View File

@ -814,7 +814,8 @@ void GLVolumeCollection::render(GLVolumeCollection::ERenderType type, bool disab
const int vol_idx = volume.first->volume_idx(); const int vol_idx = volume.first->volume_idx();
const bool render_as_mmu_painted = is_render_as_mmu_painted_enabled && !volume.first->selected && const bool render_as_mmu_painted = is_render_as_mmu_painted_enabled && !volume.first->selected &&
!volume.first->is_outside && volume.first->hover == GLVolume::HS_None && !volume.first->is_wipe_tower && obj_idx >= 0 && vol_idx >= 0 && !volume.first->is_outside && volume.first->hover == GLVolume::HS_None && !volume.first->is_wipe_tower && obj_idx >= 0 && vol_idx >= 0 &&
!model_objects[obj_idx]->volumes[vol_idx]->mm_segmentation_facets.empty(); !model_objects[obj_idx]->volumes[vol_idx]->mm_segmentation_facets.empty() &&
type != GLVolumeCollection::ERenderType::Transparent; // to filter out shells (not very nice)
volume.first->set_render_color(true); volume.first->set_render_color(true);
// render sinking contours of non-hovered volumes // render sinking contours of non-hovered volumes