mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 19:36:03 +08:00
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_bug_fixes
This commit is contained in:
commit
a1ec38a7fb
@ -72,7 +72,7 @@ Color GCodePreviewData::RangeBase::get_color_at(float value) const
|
|||||||
{
|
{
|
||||||
// Input value scaled to the color range
|
// Input value scaled to the color range
|
||||||
float step = step_size();
|
float step = step_size();
|
||||||
const float global_t = (step != 0.0f) ? std::max(0.0f, value - min()) / step_size() : 0.0f; // lower limit of 0.0f
|
const float global_t = (step != 0.0f) ? std::max(0.0f, value - min()) / step : 0.0f; // lower limit of 0.0f
|
||||||
|
|
||||||
constexpr std::size_t color_max_idx = range_rainbow_colors.size() - 1;
|
constexpr std::size_t color_max_idx = range_rainbow_colors.size() - 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user