diff --git a/tiny_gltf.h b/tiny_gltf.h index 76374c0..df132ee 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -5590,6 +5590,10 @@ static void SerializeGltfNode(Node &node, json &o) { SerializeNumberProperty("camera", node.camera, o); } + if (node.weights.size() > 0) { + SerializeNumberArrayProperty("weights", node.weights, o); + } + if (node.extras.Type() != NULL_TYPE) { SerializeValue("extras", node.extras, o); }