From 43f30dc8373f16b32efa07323045875ec10b1314 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 8 Oct 2010 20:38:30 +0200 Subject: [PATCH] fix issues with embedded models --- tools/quake3/q3map2/convert_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/quake3/q3map2/convert_map.c b/tools/quake3/q3map2/convert_map.c index c175b58a..69418854 100644 --- a/tools/quake3/q3map2/convert_map.c +++ b/tools/quake3/q3map2/convert_map.c @@ -87,7 +87,7 @@ void GetBestSurfaceTriangleMatchForBrushside(side_t *buildSide, bspDrawVert_t *b vert[0] = &bspDrawVerts[s->firstVert + bspDrawIndexes[s->firstIndex + t + 0]]; vert[1] = &bspDrawVerts[s->firstVert + bspDrawIndexes[s->firstIndex + t + 1]]; vert[2] = &bspDrawVerts[s->firstVert + bspDrawIndexes[s->firstIndex + t + 2]]; - if(s->surfaceType == MST_PLANAR) + if(s->surfaceType == MST_PLANAR && VectorCompare(vert[0]->normal, vert[1]->normal) && VectorCompare(vert[1]->normal, vert[2]->normal)) { VectorSubtract(vert[0]->normal, buildPlane->normal, normdiff); if(VectorLength(normdiff) >= normalEpsilon) continue; VectorSubtract(vert[1]->normal, buildPlane->normal, normdiff); if(VectorLength(normdiff) >= normalEpsilon) continue; -- 2.39.2