Przeglądaj źródła

Update assimpShapeLoader.cpp

because of the convert to lefthand gltf all formats are good with Y_UP
marauder2k7 9 miesięcy temu
rodzic
commit
af6722f547
1 zmienionych plików z 0 dodań i 7 usunięć
  1. 0 7
      Engine/source/ts/assimp/assimpShapeLoader.cpp

+ 0 - 7
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