mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-07-06 19:47:32 +08:00
Merge pull request #73 from holzon/fix/extras
Added missing extras serialization for nodes
This commit is contained in:
commit
a48f12d2fc
@ -3880,6 +3880,10 @@ static void SerializeGltfNode(Node &node, json &o) {
|
|||||||
SerializeNumberProperty<int>("camera", node.camera, o);
|
SerializeNumberProperty<int>("camera", node.camera, o);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (node.extras.Type() != NULL_TYPE) {
|
||||||
|
SerializeValue("extras", node.extras, o);
|
||||||
|
}
|
||||||
|
|
||||||
SerializeExtensionMap(node.extensions, o);
|
SerializeExtensionMap(node.extensions, o);
|
||||||
SerializeStringProperty("name", node.name, o);
|
SerializeStringProperty("name", node.name, o);
|
||||||
SerializeNumberArrayProperty<int>("children", node.children, o);
|
SerializeNumberArrayProperty<int>("children", node.children, o);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user