Commit: 5f01048dcb9a146f2ffc6273f18c5d0553b3f6f1 Author: Richard Antalik Date: Thu Jun 18 05:41:19 2020 +0200 Branches: blender-v2.83-release https://developer.blender.org/rB5f01048dcb9a146f2ffc6273f18c5d0553b3f6f1
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 =================================================================== M source/blender/blenkernel/intern/sequencer.c =================================================================== diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c index d0527a2635a..dc27ca9e6cb 100644 --- a/source/blender/blenkernel/intern/sequencer.c +++ b/source/blender/blenkernel/intern/sequencer.c @@ -2342,7 +2342,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) _______________________________________________ Bf-blender-cvs mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-blender-cvs
