Browse Source

glTF2: Fix incorrect camera position

Suhajda Tamás 2 years ago
parent
commit
9915e875bf
1 changed files with 0 additions and 5 deletions
  1. 0 5
      code/AssetLib/glTF2/glTF2Importer.cpp

+ 0 - 5
code/AssetLib/glTF2/glTF2Importer.cpp

@@ -1172,11 +1172,6 @@ aiNode *ImportNode(aiScene *pScene, glTF2::Asset &r, std::vector<unsigned int> &
 
         if (node.camera) {
             pScene->mCameras[node.camera.GetIndex()]->mName = ainode->mName;
-            if (node.translation.isPresent) {
-                aiVector3D trans;
-                CopyValue(node.translation.value, trans);
-                pScene->mCameras[node.camera.GetIndex()]->mPosition = trans;
-            }
         }
 
         if (node.light) {