]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
show more detail in "has no triangles" and "has no vertexes" warning
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 13 Nov 2010 14:05:04 +0000 (14:05 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 13 Nov 2010 14:11:36 +0000 (15:11 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10595 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=6acdb81fe2b7489fb2fa6c7c07b73e4a9ba374d0

model_brush.c

index 13970b3008b3e424f0efd4800ea2bf20364921f3..d16d67ebce94f32725f0bf2a1693b9051270f82a 100644 (file)
@@ -5319,9 +5319,16 @@ static void Mod_Q3BSP_LoadFaces(lump_t *l)
                if(out->num_vertices && out->num_triangles)
                        continue;
                if(out->num_vertices == 0)
-                       Con_Printf("Mod_Q3BSP_LoadFaces: surface %d has no vertices, ignoring\n", i);
-               if(out->num_triangles == 0)
-                       Con_Printf("Mod_Q3BSP_LoadFaces: surface %d has no triangles, ignoring\n", i);
+               {
+                       Con_Printf("Mod_Q3BSP_LoadFaces: surface %d (texture %s) has no vertices, ignoring\n", i, out->texture->name);
+                       if(out->num_triangles == 0)
+                               Con_Printf("Mod_Q3BSP_LoadFaces: surface %d (texture %s) has no triangles, ignoring\n", i, out->texture->name);
+               }
+               else if(out->num_triangles == 0)
+                       Con_Printf("Mod_Q3BSP_LoadFaces: surface %d (texture %s, near %f %f %f) has no triangles, ignoring\n", i, out->texture->name,
+                                       (loadmodel->surfmesh.data_vertex3f + 3 * out->num_firstvertex)[0 * 3 + 0],
+                                       (loadmodel->surfmesh.data_vertex3f + 3 * out->num_firstvertex)[1 * 3 + 0],
+                                       (loadmodel->surfmesh.data_vertex3f + 3 * out->num_firstvertex)[2 * 3 + 0]);
        }
 
        // for per pixel lighting