Skip to content

Commit d4179ba

Browse files
committed
Prevent null nodes by setting a name
1 parent 3951b35 commit d4179ba

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/GLTF.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include "GLTF.hpp"
77

8+
#include <format>
89
#include <numbers>
910

1011
struct Quaternion
@@ -267,6 +268,7 @@ void GLTFExporter::buildSkeletonScene()
267268
for (auto& mmdNode : mmd.skeleton)
268269
{
269270
tinygltf::Node node;
271+
node.name = std::format("node-{}", model.nodes.size());
270272

271273
if (mmdNode.object != 255)
272274
{

0 commit comments

Comments
 (0)