From f81ea6986ccd30a016ec44a1fd46e2e5c3ff9d4c Mon Sep 17 00:00:00 2001 From: Lux <52231149+lxw404@users.noreply.github.com> Date: Wed, 11 Sep 2024 04:11:15 -0400 Subject: [PATCH] Restored absolute transform calculation due to https://github.com/assimp/assimp/pull/5349 which requires this now. (#5751) --- code/AssetLib/FBX/FBXConverter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/AssetLib/FBX/FBXConverter.cpp b/code/AssetLib/FBX/FBXConverter.cpp index 6ce00bb85..725a23aaf 100644 --- a/code/AssetLib/FBX/FBXConverter.cpp +++ b/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