Blender Git Loki
Git Commits -> Revision 25601df
Revision 25601df by Campbell Barton (vr_scene_inspection) February 20, 2020, 12:00 (GMT) |
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'. |
Commit Details:
Full Hash: 25601df774bbf5ce08d69c8f446d266c232375d5
Parent Commit: 7873807
Committed By: Julian Eisel
Lines Changed: +65, -34
1 Modified Path:
/source/blender/blenlib/intern/math_geom.c (+65, -34) (Diff)