mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-15 21:45:55 +08:00
Merge pull request #230 from itainter/fix-primitive-extension
Fix the issue that the extension of primitive written as extension of mesh.
This commit is contained in:
commit
8ced108571
@ -6782,7 +6782,7 @@ static void SerializeGltfMesh(Mesh &mesh, json &o) {
|
|||||||
JsonAddMember(primitive, "targets", std::move(targets));
|
JsonAddMember(primitive, "targets", std::move(targets));
|
||||||
}
|
}
|
||||||
|
|
||||||
SerializeExtensionMap(gltfPrimitive.extensions, o);
|
SerializeExtensionMap(gltfPrimitive.extensions, primitive);
|
||||||
|
|
||||||
if (gltfPrimitive.extras.Type() != NULL_TYPE) {
|
if (gltfPrimitive.extras.Type() != NULL_TYPE) {
|
||||||
SerializeValue("extras", gltfPrimitive.extras, primitive);
|
SerializeValue("extras", gltfPrimitive.extras, primitive);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user