Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-08-03 13:44:00 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-08-03 13:47:36 +0300
commit1b8afac652e6d2f2c78177957854c5ceb688e3a0 (patch)
treea674f2135ff13eb4e0185501eb4e8f890e6a77e8 /source/blender/bmesh
parent230d93ad542cd38c458590b7888961b7948f1a89 (diff)
Cleanup: remove redundant normalize
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r--source/blender/bmesh/operators/bmo_similar.c7
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: