mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-16 09:48:00 -05:00
chore: add names to exported gltf models
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user