mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Fix issue that thumbnail color not updated properly when AMS slot mapping changes (#7194)
* Fix issue that thumbnail color not updated properly when AMS slot mapping changes
This commit is contained in:
@@ -5939,7 +5939,7 @@ void GLCanvas3D::render_thumbnail_internal(ThumbnailData& thumbnail_data, const
|
||||
|
||||
ColorRGBA new_color = adjust_color_for_rendering(curr_color);
|
||||
if (ban_light) {
|
||||
new_color[3] = (255 - vol->extruder_id) / 255.0f;
|
||||
new_color[3] =(255 - (vol->extruder_id -1))/255.0f;
|
||||
}
|
||||
vol->model.set_color(new_color);
|
||||
shader->set_uniform("volume_world_matrix", vol->world_matrix());
|
||||
|
||||
Reference in New Issue
Block a user