Merge branch 'blender-v2.92-release'

This commit is contained in:
Jacques Lucke
2021-02-08 13:36:51 +01:00

View File

@@ -122,7 +122,8 @@ class MapRangeFunction : public blender::fn::MultiFunction {
if (clamp_) {
for (int64_t i : mask) {
CLAMP(results[i], 0.0f, 1.0f);
results[i] = (to_min[i] > to_max[i]) ? clamp_f(results[i], to_max[i], to_min[i]) :
clamp_f(results[i], to_min[i], to_max[i]);
}
}
}