From: Thomas Debesse Date: Thu, 1 Feb 2018 23:18:31 +0000 (+0100) Subject: remove debug code and useless one X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3b10b016cf1c74b9bfda0888843726d3b4391024;p=xonotic%2Fnetradiant.git remove debug code and useless one --- diff --git a/plugins/iqmmodel/iqm.cpp b/plugins/iqmmodel/iqm.cpp index 355993d9..466effcc 100644 --- a/plugins/iqmmodel/iqm.cpp +++ b/plugins/iqmmodel/iqm.cpp @@ -176,16 +176,6 @@ void istream_read_iqmVertexarray( PointerInputStream &inputStream, iqmvertexarra #undef READINT } -typedef struct iqmvertex_s { - float position[3]; - float texcoord[2]; - float normal[3]; - float tangent[4]; - unsigned char blendindices[4]; - unsigned char blendweights[4]; - unsigned char color[4]; -} iqmvertex_t; - ArbitraryMeshVertex IQMVertex_construct( const iqmPos_t *pos, const iqmPos_t *norm, const iqmSt_t *st ){ return ArbitraryMeshVertex( Vertex3f( pos->v[0], pos->v[1], pos->v[2] ), @@ -201,8 +191,6 @@ void IQMSurface_read( Model &model, const byte *buffer, ArchiveFile &file ){ istream_read_iqmHeader( inputStream, header ); } - printf( "num meshes: %d\n", header.num_meshes ); - int ofs_position = -1, ofs_st = -1, ofs_normal = -1; PointerInputStream vaStream( buffer + header.ofs_vertexarrays ); for ( unsigned int i = 0; i < header.num_vertexarrays; i++ ) { @@ -253,21 +241,12 @@ void IQMSurface_read( Model &model, const byte *buffer, ArchiveFile &file ){ iqmmesh_t iqmmesh; istream_read_iqmMesh( iqmMesh, iqmmesh ); - // if not malformed data neither missing string - if ( iqmmesh.name <= header.num_text && iqmmesh.name > 0 ) { - char *name; - name = (char*) buffer + header.ofs_text + iqmmesh.name; - printf( "mesh: %d, name: %s\n", m, name ); - } - bool material_found = false; // if not malformed data neither missing string if ( iqmmesh.material <= header.num_text && iqmmesh.material > 0 ) { char *material; material = (char*) buffer + header.ofs_text + iqmmesh.material; - printf( "mesh: %d, texture: %s\n", m, material ); - if ( material[0] != '\0' ) { surface.setShader( material ); material_found = true; @@ -279,9 +258,6 @@ void IQMSurface_read( Model &model, const byte *buffer, ArchiveFile &file ){ surface.setShader( "" ); } - printf( "mesh: %d, num vertexes: %d\n", m, iqmmesh.num_vertexes ); - printf( "mesh: %d, num triangles: %d\n", m, iqmmesh.num_triangles ); - UniqueVertexBuffer inserter( surface.vertices() ); inserter.reserve( iqmmesh.num_vertexes );