Bugfix : Set right extension for Q3bsp loader
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1001 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
cbceae960c
commit
e23767a170
|
@ -658,9 +658,9 @@ bool Q3BSPFileImporter::importTextureFromArchive( const Q3BSP::Q3BSPModel *pMode
|
|||
size_t readSize = pTextureStream->Read( pData, sizeof( unsigned char ), pTexture->mWidth );
|
||||
ai_assert( readSize == pTexture->mWidth );
|
||||
pTexture->pcData = reinterpret_cast<aiTexel*>( pData );
|
||||
pTexture->achFormatHint[ 0 ] = 'j';
|
||||
pTexture->achFormatHint[ 1 ] = 'p';
|
||||
pTexture->achFormatHint[ 2 ] = 'g';
|
||||
pTexture->achFormatHint[ 0 ] = ext[ 0 ];
|
||||
pTexture->achFormatHint[ 1 ] = ext[ 1 ];
|
||||
pTexture->achFormatHint[ 2 ] = ext[ 2 ];
|
||||
pTexture->achFormatHint[ 2 ] = '\0';
|
||||
res = true;
|
||||
|
||||
|
@ -734,6 +734,13 @@ bool Q3BSPFileImporter::importLightmap( const Q3BSP::Q3BSPModel *pModel, aiScene
|
|||
return true;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
// Imports the entities.
|
||||
bool Q3BSPFileImporter::importEntities( const Q3BSP::Q3BSPModel *pModel, aiScene* pScene )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
// Will search for a supported extension.
|
||||
bool Q3BSPFileImporter::expandFile( Q3BSP::Q3BSPZipArchive *pArchive, const std::string &rFilename,
|
||||
|
|
Loading…
Reference in New Issue