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:
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
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue