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

pull/5643/head
Lux 2024-06-28 09:10:36 -04:00
parent d3bec44990
commit ea988c13f0
1 changed files with 4 additions and 0 deletions

View File

@ -310,6 +310,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
@ -332,6 +334,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