diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-08-03 13:44:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-08-03 13:47:36 +0300 |
commit | 1b8afac652e6d2f2c78177957854c5ceb688e3a0 (patch) | |
tree | a674f2135ff13eb4e0185501eb4e8f890e6a77e8 | |
parent | 230d93ad542cd38c458590b7888961b7948f1a89 (diff) |
Cleanup: remove redundant normalize
-rw-r--r-- | source/blender/bmesh/operators/bmo_similar.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/bmesh/operators/bmo_similar.c b/source/blender/bmesh/operators/bmo_similar.c index 5f8438919df..825a158e23e 100644 --- a/source/blender/bmesh/operators/bmo_similar.c +++ b/source/blender/bmesh/operators/bmo_similar.c @@ -102,7 +102,6 @@ void bmo_similar_faces_exec(BMesh *bm, BMOperator *op) float angle = 0.0f; SimSel_FaceExt *f_ext = NULL; int *indices = NULL; - float t_no[3]; /* temporary normal */ const int type = BMO_slot_int_get(op->slots_in, "type"); const float thresh = BMO_slot_float_get(op->slots_in, "thresh"); const float thresh_radians = thresh * (float)M_PI; @@ -158,12 +157,8 @@ void bmo_similar_faces_exec(BMesh *bm, BMOperator *op) /* compute the center of the polygon */ BM_face_calc_center_mean(f_ext[i].f, f_ext[i].c); - /* normalize the polygon normal */ - copy_v3_v3(t_no, f_ext[i].f->no); - normalize_v3(t_no); - /* compute the plane distance */ - f_ext[i].d = dot_v3v3(t_no, f_ext[i].c); + f_ext[i].d = dot_v3v3(f_ext[i].f->no, f_ext[i].c); break; case SIMFACE_AREA: |