- manually pulled the three smaller change requests from Github.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1331 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -640,6 +640,7 @@ bool Q3BSPFileImporter::importTextureFromArchive( const Q3BSP::Q3BSPModel *pMode
|
||||
std::vector<std::string> supportedExtensions;
|
||||
supportedExtensions.push_back( ".jpg" );
|
||||
supportedExtensions.push_back( ".png" );
|
||||
supportedExtensions.push_back( ".tga" );
|
||||
if ( NULL == pArchive || NULL == pArchive || NULL == pMatHelper )
|
||||
{
|
||||
return false;
|
||||
@@ -670,10 +671,10 @@ bool Q3BSPFileImporter::importTextureFromArchive( const Q3BSP::Q3BSPModel *pMode
|
||||
(void)readSize;
|
||||
ai_assert( readSize == pTexture->mWidth );
|
||||
pTexture->pcData = reinterpret_cast<aiTexel*>( pData );
|
||||
pTexture->achFormatHint[ 0 ] = ext[ 0 ];
|
||||
pTexture->achFormatHint[ 1 ] = ext[ 1 ];
|
||||
pTexture->achFormatHint[ 2 ] = ext[ 2 ];
|
||||
pTexture->achFormatHint[ 2 ] = '\0';
|
||||
pTexture->achFormatHint[ 0 ] = ext[ 1 ];
|
||||
pTexture->achFormatHint[ 1 ] = ext[ 2 ];
|
||||
pTexture->achFormatHint[ 2 ] = ext[ 3 ];
|
||||
pTexture->achFormatHint[ 3 ] = '\0';
|
||||
res = true;
|
||||
|
||||
aiString name;
|
||||
|
||||
Reference in New Issue
Block a user