@@ -128,15 +128,6 @@ void applyTransformation(aiNode* node, const aiMatrix4x4& transform) {
128128 node->mTransformation = transform * node->mTransformation ; // Apply transformation to the node
129129}
130130
131- void applyRootTransformation (aiNode* node, const aiMatrix4x4& transform) {
132- node->mTransformation = transform * node->mTransformation ; // Apply transformation to the node
133-
134- // Recursively apply to all child nodes
135- for (unsigned int i = 0 ; i < node->mNumChildren ; ++i) {
136- applyRootTransformation (node->mChildren [i], transform);
137- }
138- }
139-
140131void scaleScene (const aiScene* scene, F32 scaleFactor) {
141132 aiMatrix4x4 scaleMatrix;
142133 scaleMatrix = aiMatrix4x4::Scaling (aiVector3D (scaleFactor, scaleFactor, scaleFactor), scaleMatrix);
@@ -263,9 +254,6 @@ void AssimpShapeLoader::enumerateScene()
263254 }
264255 }
265256
266- if (fileExt == String::ToString (" glb" ))
267- ColladaUtils::getOptions ().upAxis = UPAXISTYPE_X_UP;
268-
269257 for (U32 i = 0 ; i < mScene ->mNumTextures ; ++i) {
270258 extractTexture (i, mScene ->mTextures [i]);
271259 }
@@ -330,11 +318,6 @@ void AssimpShapeLoader::configureImportUnits() {
330318 }
331319 options.unit = static_cast <F32>(unitScaleFactor);
332320 }
333-
334- int upAxis = UPAXISTYPE_Z_UP;
335- if (getMetaInt (" UpAxis" , upAxis)) {
336- options.upAxis = static_cast <domUpAxisType>(upAxis);
337- }
338321}
339322
340323void AssimpShapeLoader::processAssimpNode (const aiNode* node, const aiScene* scene, AssimpAppNode* parentNode)
0 commit comments