|
@@ -165,7 +165,9 @@ bool Q3BSPFileImporter::CanRead( const std::string& rFile, IOSystem* pIOHandler,
|
|
{
|
|
{
|
|
bool isBSPData = false;
|
|
bool isBSPData = false;
|
|
if ( checkSig )
|
|
if ( checkSig )
|
|
- isBSPData = SimpleExtensionCheck( rFile, Q3BSPExtention.c_str() );
|
|
|
|
|
|
+ {
|
|
|
|
+ isBSPData = SimpleExtensionCheck( rFile, Q3BSPExtension .c_str() );
|
|
|
|
+ }
|
|
|
|
|
|
return isBSPData;
|
|
return isBSPData;
|
|
}
|
|
}
|
|
@@ -174,7 +176,7 @@ bool Q3BSPFileImporter::CanRead( const std::string& rFile, IOSystem* pIOHandler,
|
|
// Adds extensions.
|
|
// Adds extensions.
|
|
void Q3BSPFileImporter::GetExtensionList( std::set<std::string>& extensions )
|
|
void Q3BSPFileImporter::GetExtensionList( std::set<std::string>& extensions )
|
|
{
|
|
{
|
|
- extensions.insert( Q3BSPExtention );
|
|
|
|
|
|
+ extensions.insert( Q3BSPExtension );
|
|
}
|
|
}
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
// ------------------------------------------------------------------------------------------------
|
|
@@ -629,6 +631,9 @@ bool Q3BSPFileImporter::importTextureFromArchive( const Q3BSP::Q3BSPModel *pMode
|
|
Q3BSP::Q3BSPZipArchive *pArchive, aiScene* pScene,
|
|
Q3BSP::Q3BSPZipArchive *pArchive, aiScene* pScene,
|
|
Assimp::MaterialHelper *pMatHelper, int textureId )
|
|
Assimp::MaterialHelper *pMatHelper, int textureId )
|
|
{
|
|
{
|
|
|
|
+ std::vector<std::string> supportedExtensions;
|
|
|
|
+ supportedExtensions.push_back( ".jpg" );
|
|
|
|
+ supportedExtensions.push_back( ".png" );
|
|
if ( NULL == pArchive || NULL == pArchive || NULL == pMatHelper )
|
|
if ( NULL == pArchive || NULL == pArchive || NULL == pMatHelper )
|
|
{
|
|
{
|
|
return false;
|
|
return false;
|
|
@@ -680,7 +685,7 @@ bool Q3BSPFileImporter::importTextureFromArchive( const Q3BSP::Q3BSPModel *pMode
|
|
}
|
|
}
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
// ------------------------------------------------------------------------------------------------
|
|
-// Imports a lightmap file.
|
|
|
|
|
|
+// Imports a light map file.
|
|
bool Q3BSPFileImporter::importLightmap( const Q3BSP::Q3BSPModel *pModel, aiScene* pScene,
|
|
bool Q3BSPFileImporter::importLightmap( const Q3BSP::Q3BSPModel *pModel, aiScene* pScene,
|
|
Assimp::MaterialHelper *pMatHelper, int lightmapId )
|
|
Assimp::MaterialHelper *pMatHelper, int lightmapId )
|
|
{
|
|
{
|