mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 09:35:53 +08:00
added missing extras serialization for nodes
This commit is contained in:
parent
7c56f8eb9e
commit
b96f6966ab
@ -3880,6 +3880,10 @@ static void SerializeGltfNode(Node &node, json &o) {
|
||||
SerializeNumberProperty<int>("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<int>("children", node.children, o);
|
||||
|
Loading…
x
Reference in New Issue
Block a user