From c07113238582ff773f0cd9d8d5882ac8c35853ee Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Wed, 24 Nov 2021 11:48:52 +0100 Subject: [PATCH] Fix of objects have wrong color when using convex printbeds - SPE-1132 --- src/slic3r/GUI/GLCanvas3D.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 1c7fc4a61..49604d138 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -5119,10 +5119,12 @@ void GLCanvas3D::_render_objects(GLVolumeCollection::ERenderType type) break; } default: + case BuildVolume::Type::Convex: case BuildVolume::Type::Custom: { m_volumes.set_print_volume({ static_cast(type), - { 0.0f, 0.0f, 0.0f, 0.0f }, - { 0.0f, 0.0f } }); + { -FLT_MAX, -FLT_MAX, FLT_MAX, FLT_MAX }, + { -FLT_MAX, FLT_MAX } } + ); } } if (m_requires_check_outside_state) {