mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Fix regression that shell is not rendered unless slice is completed (#3181)
* Fix issue that `is_update_alpha` doesn't work * Fix regression that shell is not rendered unless slice is completed * Format
This commit is contained in:
@@ -1162,13 +1162,14 @@ void GLVolumeCollection::update_colors_by_extruder(const DynamicPrintConfig *con
|
||||
|
||||
const ColorItem& color = colors[extruder_id];
|
||||
if (!color.first.empty()) {
|
||||
if (!is_update_alpha) {
|
||||
float old_a = color.second.a();
|
||||
if (!is_update_alpha) {
|
||||
float old_a = volume->color.a();
|
||||
volume->color = color.second;
|
||||
volume->color.a(old_a);
|
||||
}
|
||||
volume->color = color.second;
|
||||
}
|
||||
} else {
|
||||
volume->color = color.second;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user