mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-09-15 14:54:33 +00:00
serialize node weights
This commit is contained in:
@@ -5590,6 +5590,10 @@ static void SerializeGltfNode(Node &node, json &o) {
|
||||
SerializeNumberProperty<int>("camera", node.camera, o);
|
||||
}
|
||||
|
||||
if (node.weights.size() > 0) {
|
||||
SerializeNumberArrayProperty<double>("weights", node.weights, o);
|
||||
}
|
||||
|
||||
if (node.extras.Type() != NULL_TYPE) {
|
||||
SerializeValue("extras", node.extras, o);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user