Fix T102216: Change `min_ff` to `max_ff` in the return of `BlendType max`

BlendType max incorrectly returns the minimum in BLI_color_mix.hh
This differential fixes it to return the maximum.

Maniphest Tasks: T102216

Ref D16364
This commit is contained in:
Evan Wilson 2022-11-04 19:15:52 +11:00 committed by Campbell Barton
parent 11a705c2d0
commit 72505da862
Notes: blender-bot 2023-02-14 08:08:54 +01:00
Referenced by issue #102216, Vertex Painting weird behavior with screen blending mode
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ struct FloatTraits {
static inline BlendType max(BlendType a, BlendType b)
{
return min_ff(a, b);
return max_ff(a, b);
}
/* Discretizes in steps of 1.0 / range */