mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06: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:
parent
983f1a827e
commit
ae31f4fb1f
2 changed files with 6 additions and 2 deletions
|
@ -84,7 +84,11 @@ std::vector<Slic3r::ColorRGBA> get_extruders_colors()
|
|||
|
||||
float FullyTransparentMaterialThreshold = 0.1f;
|
||||
float FullTransparentModdifiedToFixAlpha = 0.3f;
|
||||
float FULL_BLACK_THRESHOLD = 0.18f;
|
||||
// Be careful changing this value because it could break thumbnail color due to rounding error!
|
||||
// The color rendering on BambuLab's "send to printer" screen relies on the assumption that this color can be accurately rendered by OpenGL,
|
||||
// value like 0.18f could not because in C++ (int)(0.18f * 255) == 45 however in OpenGL it renders this as 46
|
||||
// which breaks the `SelectMachineDialog::record_edge_pixels_data()` function!
|
||||
float FULL_BLACK_THRESHOLD = 0.2f;
|
||||
|
||||
Slic3r::ColorRGBA adjust_color_for_rendering(const Slic3r::ColorRGBA &colors)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue