mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 14:00:39 +00:00
Update assimpShapeLoader.cpp
because of the convert to lefthand gltf all formats are good with Y_UP
This commit is contained in:
parent
5beef47b23
commit
af6722f547
1 changed files with 0 additions and 7 deletions
|
|
@ -235,11 +235,6 @@ void AssimpShapeLoader::enumerateScene()
|
|||
// Format-specific adjustments
|
||||
String fileExt = String::ToLower(shapePath.getExtension());
|
||||
const aiImporterDesc* importerDescription = aiGetImporterDesc(fileExt.c_str());
|
||||
if (fileExt == String::ToString("gltf") || fileExt == String::ToString("glb")) {
|
||||
Con::printf("[ASSIMP] Detected GLTF format, applying reorientation...");
|
||||
ColladaUtils::getOptions().upAxis = UPAXISTYPE_X_UP;
|
||||
}
|
||||
|
||||
if (importerDescription && dStrcmp(importerDescription->mName, "Autodesk FBX Importer") == 0) {
|
||||
Con::printf("[ASSIMP] Detected FBX format, checking unit scale...");
|
||||
F32 scaleFactor = ColladaUtils::getOptions().unit;
|
||||
|
|
@ -251,8 +246,6 @@ void AssimpShapeLoader::enumerateScene()
|
|||
{
|
||||
scaleScene(mScene, 0.01f);
|
||||
}
|
||||
|
||||
ColladaUtils::getOptions().upAxis = UPAXISTYPE_Y_UP;
|
||||
}
|
||||
|
||||
// Extract embedded textures
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue