diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-08-31 20:10:13 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-08-31 20:10:13 +0400 |
commit | 5ecff7a240514e8f16e17aa163c6f0055b9edaf2 (patch) | |
tree | 114d739e822315255d865bb1156811d492d28b36 /source/blender | |
parent | fe9b1c644f6dbfb531f23f9c4b4af53a3488abbb (diff) |
Fix #32329: inset produces incorrect result, epsilon was too small to handle
floating point error.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/bmesh/operators/bmo_inset.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/bmesh/operators/bmo_inset.c b/source/blender/bmesh/operators/bmo_inset.c index 3aa6e6dbe49..132d7050b31 100644 --- a/source/blender/bmesh/operators/bmo_inset.c +++ b/source/blender/bmesh/operators/bmo_inset.c @@ -283,7 +283,8 @@ void bmo_inset_exec(BMesh *bm, BMOperator *op) * cross product between both face normals */ add_v3_v3v3(tvec, e_info_a->no, e_info_b->no); - if ((f_a == f_b) || compare_v3v3(f_a->no, f_b->no, 0.00001f)) { + /* epsilon increased to fix [#32329] */ + if ((f_a == f_b) || compare_v3v3(f_a->no, f_b->no, 0.001f)) { normalize_v3(tvec); } else { |