Fix T75414: Incorrect masking in Color Balance modifier
Color balance factor was infinity. Clamp to +/- `FLT_MAX` Reviewed By: sergey Differential Revision: https://developer.blender.org/D7884
This commit is contained in:
@@ -2315,7 +2315,9 @@ MINLINE float color_balance_fl(
|
||||
x = 0.f;
|
||||
}
|
||||
|
||||
return powf(x, gamma) * mul;
|
||||
x = powf(x, gamma) * mul;
|
||||
CLAMP(x, FLT_MIN, FLT_MAX);
|
||||
return x;
|
||||
}
|
||||
|
||||
static void make_cb_table_float(float lift, float gain, float gamma, float *table, float mul)
|
||||
|
||||
Reference in New Issue
Block a user