From af6722f547c6099a6419385dc4f17b69690be412 Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Tue, 10 Dec 2024 18:41:14 +0000 Subject: [PATCH] Update assimpShapeLoader.cpp because of the convert to lefthand gltf all formats are good with Y_UP --- Engine/source/ts/assimp/assimpShapeLoader.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Engine/source/ts/assimp/assimpShapeLoader.cpp b/Engine/source/ts/assimp/assimpShapeLoader.cpp index d345e79d1..71d896124 100644 --- a/Engine/source/ts/assimp/assimpShapeLoader.cpp +++ b/Engine/source/ts/assimp/assimpShapeLoader.cpp @@ -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