Follow-up of 9190810c1f5360a7130e9d78d57365e157e9bc43 - Modified code to use the new ColorRGBA

This commit is contained in:
enricoturri1966 2022-01-17 08:16:13 +01:00
parent a9bd58639c
commit 6f9efbf19a

View File

@ -1845,7 +1845,7 @@ void GLCanvas3D::reload_scene(bool refresh_immediately, bool force_full_scene_re
volume->is_modifier = !mvs->model_volume->is_model_part();
volume->set_color(color_from_model_volume(*mvs->model_volume));
// force update of render_color alpha channel
bool transparent = volume->color[3] < 1.0f;
bool transparent = volume->color.is_transparent();
if (transparent)
volume->force_transparent = true;
volume->set_render_color();