From b96f6966ab966a86489d446368a1d53ab60ab383 Mon Sep 17 00:00:00 2001 From: Jens Olsson Date: Thu, 24 May 2018 15:29:54 +0200 Subject: [PATCH] added missing extras serialization for nodes --- tiny_gltf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tiny_gltf.h b/tiny_gltf.h index f60d9fb..b1ef164 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -3880,6 +3880,10 @@ static void SerializeGltfNode(Node &node, json &o) { SerializeNumberProperty("camera", node.camera, o); } + if (node.extras.Type() != NULL_TYPE) + SerializeValue("extras", node.extras, o); + } + SerializeExtensionMap(node.extensions, o); SerializeStringProperty("name", node.name, o); SerializeNumberArrayProperty("children", node.children, o);