From dcf9213a48f425dc724716b9cbe8a256e32e3153 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 7 Oct 2003 18:42:37 +0000 Subject: [PATCH] - if( a || b && c) is (a || (b && c)) and not the other way! thats what you get with cleaning warnings. :) --- source/blender/src/editface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); */