Shifted check for FBX importer in assimp shape loader code to utilize stringtable

This commit is contained in:
Areloch 2021-11-14 01:28:16 -06:00
parent f14375983b
commit 2af12c52e1

View file

@ -179,7 +179,7 @@ void AssimpShapeLoader::enumerateScene()
String importFormat; String importFormat;
const aiImporterDesc* importerDescription = aiGetImporterDesc(shapePath.getExtension().c_str()); const aiImporterDesc* importerDescription = aiGetImporterDesc(shapePath.getExtension().c_str());
if (importerDescription->mName == "Autodesk FBX Importer") if (StringTable->insert(importerDescription->mName) == StringTable->insert("Autodesk FBX Importer"))
{ {
ColladaUtils::getOptions().formatScaleFactor = 0.01f; ColladaUtils::getOptions().formatScaleFactor = 0.01f;
} }