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>2012-11-07 10:28:46 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-11-07 10:28:46 +0400
commitbe367890f7698cd39ed61ffa90f322f078f5c323 (patch)
tree9680432cc4442fd95ef9149d72aae46558456c53
parent8740b6cd88b9dada05a2e49b23e2ced6c184044a (diff)
decimator - no need to check abs() on normal length.
-rw-r--r--source/blender/bmesh/intern/bmesh_decimate_collapse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/bmesh/intern/bmesh_decimate_collapse.c b/source/blender/bmesh/intern/bmesh_decimate_collapse.c
index feeb2a926f3..c5cccc45818 100644
--- a/source/blender/bmesh/intern/bmesh_decimate_collapse.c
+++ b/source/blender/bmesh/intern/bmesh_decimate_collapse.c
@@ -96,7 +96,7 @@ static void bm_decim_build_quadrics(BMesh *bm, Quadric *vquadrics)
f = e->l->f;
cross_v3_v3v3(edge_cross, edge_vector, f->no);
- if (fabsf(normalize_v3(edge_cross)) > FLT_EPSILON) {
+ if (normalize_v3(edge_cross) > FLT_EPSILON) {
Quadric q;
BLI_quadric_from_v3_dist(&q, edge_cross, -dot_v3v3(edge_cross, e->v1->co));
BLI_quadric_mul(&q, BOUNDARY_PRESERVE_WEIGHT);