Update GLCanvas3D.cpp

This commit is contained in:
QIDI TECH
2024-04-10 17:50:02 +08:00
parent b6d7c8a367
commit b9997e7ee2

View File

@@ -4952,8 +4952,10 @@ void GLCanvas3D::_render_thumbnail_internal(ThumbnailData& thumbnail_data, const
else { else {
shader->set_uniform("emission_factor", 0.0f); shader->set_uniform("emission_factor", 0.0f);
//Y18 //Y18
vol->model.set_color((vol->printable && !vol->is_outside) ? ColorRGBA { 0.2f, 0.6f, 1.0f, 1.0f } : ColorRGBA::GRAY()); if (extruders_count > 1)
//vol->model.set_color((vol->printable && !vol->is_outside) ? vol->color : ColorRGBA::GRAY()); vol->model.set_color((vol->printable && !vol->is_outside) ? vol->color : ColorRGBA::GRAY());
else
vol->model.set_color((vol->printable && !vol->is_outside) ? ColorRGBA { 0.2f, 0.6f, 1.0f, 1.0f } : ColorRGBA::GRAY());
} }
// the volume may have been deactivated by an active gizmo // the volume may have been deactivated by an active gizmo
const bool is_active = vol->is_active; const bool is_active = vol->is_active;