chore: add names to exported gltf models

This commit is contained in:
Jan
2024-05-11 01:51:28 +02:00
parent 5c06b6e5e4
commit 499b752272
7 changed files with 12 additions and 0 deletions

View File

@ -69,6 +69,9 @@ namespace
{
JsonNode meshNode;
if (!xmodel.m_name.empty())
meshNode.name = xmodel.m_name;
// We only have one mesh
meshNode.mesh = 0u;
@ -90,6 +93,9 @@ namespace
{
JsonNode rootNode;
if (!xmodel.m_name.empty())
rootNode.name = std::format("{}_skel", xmodel.m_name);
if (!gltf.nodes.has_value())
gltf.nodes.emplace();