diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-02-19 05:23:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-02-19 05:33:53 +0300 |
commit | 9f8dd4f9e5c0a397485262ec815a88de4fa6cee4 (patch) | |
tree | c5a82e6fb28cecbd4a73c030709ead3788c358ae /source/blender/editors/space_clip/clip_ops.c | |
parent | eef5b506d5ce5086ab7e91cb243f2d387e60d9c4 (diff) |
BLI_math: unify zero area checks for barycentric weight calculation
This applies the change from T73348 fix to related functions.
Instead of checking against an epsilon to avoid divide by zero,
perform the division and check the result is finite.
This is needed since small faces can have an area under 'FLT_EPSILON',
and dividing by values close to zero can result in 'inf'.
Diffstat (limited to 'source/blender/editors/space_clip/clip_ops.c')
0 files changed, 0 insertions, 0 deletions