mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-16 14:21:51 +08:00
Follow-up of 9190810c1f5360a7130e9d78d57365e157e9bc43 - Modified code to use the new ColorRGBA
This commit is contained in:
parent
a9bd58639c
commit
6f9efbf19a
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user