mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-05-13 07:54:56 +00:00
fix: dumping xmodels with multiple surfaces and no bones
This commit is contained in:
parent
c28d1f6000
commit
2a4c0dcb43
@ -121,7 +121,8 @@ namespace
|
|||||||
for (auto meshIndex = 0u; meshIndex < meshCount; meshIndex++)
|
for (auto meshIndex = 0u; meshIndex < meshCount; meshIndex++)
|
||||||
rootNode.children->push_back(m_first_mesh_node + meshIndex);
|
rootNode.children->push_back(m_first_mesh_node + meshIndex);
|
||||||
|
|
||||||
rootNode.children->push_back(m_first_bone_node);
|
if (!xmodel.m_bones.empty())
|
||||||
|
rootNode.children->push_back(m_first_bone_node);
|
||||||
|
|
||||||
m_root_node = static_cast<unsigned>(gltf.nodes->size());
|
m_root_node = static_cast<unsigned>(gltf.nodes->size());
|
||||||
gltf.nodes->emplace_back(std::move(rootNode));
|
gltf.nodes->emplace_back(std::move(rootNode));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user