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>2006-07-10 15:11:17 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-07-10 15:11:17 +0400
commitc0ad762211b0f0d54bcfad216718dd3673a6f6e8 (patch)
tree3b2cf2b3fa64e0a166b04c7d1c1b0011708ac28c /source/blender/src/editmesh_mods.c
parent5f761a47076092915d5f934cb1973ef89cd23269 (diff)
fixed comparison eith edge angle.
Diffstat (limited to 'source/blender/src/editmesh_mods.c')
-rw-r--r--source/blender/src/editmesh_mods.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/editmesh_mods.c b/source/blender/src/editmesh_mods.c
index 767f9f5aa90..ba6dce0001f 100644
--- a/source/blender/src/editmesh_mods.c
+++ b/source/blender/src/editmesh_mods.c
@@ -965,7 +965,7 @@ int edgegroup_select(short mode)
else if (eed->f2==0) /* first access, assign the face */
eed->tmp.f= efa;
else if (eed->f2==1) /* second, we assign the angle*/
- eed->tmp.fp= VecAngle2(eed->tmp.f->n, efa->n);
+ eed->tmp.fp= VecAngle2(eed->tmp.f->n, efa->n)/180;
eed->f2++; /* f2==0 no face assigned. f2==1 one face found. f2==2 angle calculated.*/
j++;
}
@@ -1028,7 +1028,7 @@ int edgegroup_select(short mode)
!(eed->f & SELECT) &&
!eed->h &&
eed->f2==2 &&
- (SCALE_CMP(base_eed->tmp.fp, eed->tmp.fp))
+ (fabs(base_eed->tmp.fp-eed->tmp.fp)<=thresh)
) {
EM_select_edge(eed, 1);
selcount++;