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:
authorTon Roosendaal <ton@blender.org>2003-10-07 22:42:37 +0400
committerTon Roosendaal <ton@blender.org>2003-10-07 22:42:37 +0400
commitdcf9213a48f425dc724716b9cbe8a256e32e3153 (patch)
tree8fcfe37e0fe22bd2b25daf838f3c3ffb78f57a8a /source/blender/src/editface.c
parentf234b44d474ad45e07e4a9b2416a19a37c2e35ee (diff)
- if( a || b && c) is (a || (b && c))
and not the other way! thats what you get with cleaning warnings. :)
Diffstat (limited to 'source/blender/src/editface.c')
-rw-r--r--source/blender/src/editface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/editface.c b/source/blender/src/editface.c
index 68059e4d0f2..b94fa1db186 100644
--- a/source/blender/src/editface.c
+++ b/source/blender/src/editface.c
@@ -1199,7 +1199,7 @@ int face_pick_uv(Object* object, Mesh* mesh, TFace* face, short x, short y, floa
* If face is a quad, there are two triangles to check.
*/
result = triangle_ray_intersect(v2, v1, v3, org, dir, ab);
- if ( ((num_verts == 3) || (num_verts == 4)) && (result > 1) ) {
+ if ( (num_verts == 3) || ((num_verts == 4)) && (result > 1) ) {
/* Face is a triangle or a quad with a hit on the first triangle */
face_get_uv(face, 1, 0, 2, ab[0], ab[1], u, v);
/* printf("triangle 1, texture (u,v)=(%f, %f)\n", *u, *v); */