Sfoglia il codice sorgente

Restored absolute transform calculation due to https://github.com/assimp/assimp/pull/5349 which requires this now. (#5751)

Lux 10 mesi fa
parent
commit
f81ea6986c
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      code/AssetLib/FBX/FBXConverter.cpp

+ 4 - 0
code/AssetLib/FBX/FBXConverter.cpp

@@ -312,6 +312,8 @@ void FBXConverter::ConvertNodes(uint64_t id, aiNode *parent, aiNode *root_node)
 
                 child->mParent = last_parent;
                 last_parent = child.mNode;
+
+                new_abs_transform *= child->mTransformation;
             }
 
             // attach geometry
@@ -334,6 +336,8 @@ void FBXConverter::ConvertNodes(uint64_t id, aiNode *parent, aiNode *root_node)
 
                     postnode->mParent = last_parent;
                     last_parent = postnode.mNode;
+
+                    new_abs_transform *= postnode->mTransformation;
                 }
             } else {
                 // free the nodes we allocated as we don't need them