mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 08:15:44 +00:00
Merge pull request #677 from Areloch/assimpExtensionCaseFix
Fix extension case handling when looking up assimp importer
This commit is contained in:
commit
05a8a014b8
1 changed files with 3 additions and 2 deletions
|
|
@ -178,8 +178,9 @@ void AssimpShapeLoader::enumerateScene()
|
||||||
// Setup default units for shape format
|
// Setup default units for shape format
|
||||||
String importFormat;
|
String importFormat;
|
||||||
|
|
||||||
const aiImporterDesc* importerDescription = aiGetImporterDesc(shapePath.getExtension().c_str());
|
String fileExt = String::ToLower(shapePath.getExtension());
|
||||||
if (StringTable->insert(importerDescription->mName) == StringTable->insert("Autodesk FBX Importer"))
|
const aiImporterDesc* importerDescription = aiGetImporterDesc(fileExt.c_str());
|
||||||
|
if (importerDescription && StringTable->insert(importerDescription->mName) == StringTable->insert("Autodesk FBX Importer"))
|
||||||
{
|
{
|
||||||
ColladaUtils::getOptions().formatScaleFactor = 0.01f;
|
ColladaUtils::getOptions().formatScaleFactor = 0.01f;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue