- case _3DS_CHUNK_MAT_NAME:
- fread( mat.name, chunkLen - 6, 1, fp );
- if ( s_verbose )
- printf( " found mat name '%s'\n", mat.name );
- break;
- case _3DS_CHUNK_TEXMAP:
- LoadMapName( fp, mat.texture, chunkLen - 6 );
- if ( s_verbose )
- printf( " found texture '%s'\n", mat.texture );
- break;
- case _3DS_CHUNK_SPECMAP:
- LoadMapName( fp, mat.specular, chunkLen - 6 );
- if ( s_verbose )
- printf( " found specular map '%s'\n", mat.specular );
- break;
- case _3DS_CHUNK_OPACMAP:
- LoadMapName( fp, mat.opacity, chunkLen - 6 );
- if ( s_verbose )
- printf( " found opacity map '%s'\n", mat.opacity );
- break;
- case _3DS_CHUNK_REFLMAP:
- LoadMapName( fp, mat.reflection, chunkLen - 6 );
- if ( s_verbose )
- printf( " found reflection map '%s'\n", mat.reflection );
- break;
- case _3DS_CHUNK_BUMPMAP:
- LoadMapName( fp, mat.bump, chunkLen - 6 );
- if ( s_verbose )
- printf( " found bump map '%s'\n", mat.bump );
- break;
- default:
- fread( s_buffer, chunkLen - 6, 1, fp );
- break;
+ case _3DS_CHUNK_MAT_NAME:
+ fread( mat.name, chunkLen - 6, 1, fp );
+ if ( s_verbose ) {
+ printf( " found mat name '%s'\n", mat.name );
+ }
+ break;
+ case _3DS_CHUNK_TEXMAP:
+ LoadMapName( fp, mat.texture, chunkLen - 6 );
+ if ( s_verbose ) {
+ printf( " found texture '%s'\n", mat.texture );
+ }
+ break;
+ case _3DS_CHUNK_SPECMAP:
+ LoadMapName( fp, mat.specular, chunkLen - 6 );
+ if ( s_verbose ) {
+ printf( " found specular map '%s'\n", mat.specular );
+ }
+ break;
+ case _3DS_CHUNK_OPACMAP:
+ LoadMapName( fp, mat.opacity, chunkLen - 6 );
+ if ( s_verbose ) {
+ printf( " found opacity map '%s'\n", mat.opacity );
+ }
+ break;
+ case _3DS_CHUNK_REFLMAP:
+ LoadMapName( fp, mat.reflection, chunkLen - 6 );
+ if ( s_verbose ) {
+ printf( " found reflection map '%s'\n", mat.reflection );
+ }
+ break;
+ case _3DS_CHUNK_BUMPMAP:
+ LoadMapName( fp, mat.bump, chunkLen - 6 );
+ if ( s_verbose ) {
+ printf( " found bump map '%s'\n", mat.bump );
+ }
+ break;
+ default:
+ fread( s_buffer, chunkLen - 6, 1, fp );
+ break;