diff --git a/tiny_gltf.h b/tiny_gltf.h index 289f462..26e72b3 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -3685,6 +3685,8 @@ static bool ParseNode(Node *node, std::string *err, const json &o) { node->children.clear(); ParseIntegerArrayProperty(&node->children, err, o, "children", false); + ParseNumberArrayProperty(&node->weights, err, o, "weights", false); + ParseExtensionsProperty(&node->extensions, err, o); ParseExtrasProperty(&(node->extras), o); @@ -5599,6 +5601,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); }