mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-16 18:05:56 +08:00
serialize node weights
This commit is contained in:
parent
ad63bf748b
commit
74c3c10121
@ -5590,6 +5590,10 @@ static void SerializeGltfNode(Node &node, json &o) {
|
|||||||
SerializeNumberProperty<int>("camera", node.camera, o);
|
SerializeNumberProperty<int>("camera", node.camera, o);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (node.weights.size() > 0) {
|
||||||
|
SerializeNumberArrayProperty<double>("weights", node.weights, o);
|
||||||
|
}
|
||||||
|
|
||||||
if (node.extras.Type() != NULL_TYPE) {
|
if (node.extras.Type() != NULL_TYPE) {
|
||||||
SerializeValue("extras", node.extras, o);
|
SerializeValue("extras", node.extras, o);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user