- Change BaseImporter::GetExtensionList to add all known file extensions to a std::set, so uniqueness is guaranteed. Also rewrite all related functions in Importer. NOTE: This does *not* change the public interface.
- FIX build error on vc8/release-noboost x64, ConvertUTF.c had wrong PCH settings. - ADD knowext and listext verbs to assimp_cmd, add some raw docs. - Update unit tests to reflect these changes. Currently I keep getting failures in some tests, this needs to be resolved *urgently*. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@567 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -109,9 +109,10 @@ bool Discreet3DSImporter::CanRead( const std::string& pFile, IOSystem* pIOHandle
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
// Get list of all extension supported by this loader
|
||||
void Discreet3DSImporter::GetExtensionList(std::string& append)
|
||||
void Discreet3DSImporter::GetExtensionList(std::set<std::string>& extensions)
|
||||
{
|
||||
append.append("*.3ds;*.prj");
|
||||
extensions.insert("3ds");
|
||||
extensions.insert("prj");
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
@@ -130,8 +131,9 @@ void Discreet3DSImporter::InternReadFile( const std::string& pFile,
|
||||
this->stream = &stream;
|
||||
|
||||
// We should have at least one chunk
|
||||
if (stream.GetRemainingSize() < 16)
|
||||
if (stream.GetRemainingSize() < 16) {
|
||||
throw new ImportErrorException("3DS file is either empty or corrupt: " + pFile);
|
||||
}
|
||||
|
||||
// Allocate our temporary 3DS representation
|
||||
mScene = new D3DS::Scene();
|
||||
|
||||
Reference in New Issue
Block a user