mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-04-23 06:29:54 +08:00
only serialize doublesided if it is not the default value
This commit is contained in:
parent
f29375f59b
commit
58ab95be2f
@ -6002,7 +6002,8 @@ static void SerializeGltfMaterial(Material &material, json &o) {
|
||||
SerializeStringProperty("alphaMode", material.alphaMode, o);
|
||||
}
|
||||
|
||||
JsonAddMember(o, "doubleSided", json(material.doubleSided));
|
||||
if(material.doubleSided != false)
|
||||
JsonAddMember(o, "doubleSided", json(material.doubleSided));
|
||||
|
||||
if (material.normalTexture.index > -1) {
|
||||
json texinfo;
|
||||
|
Loading…
x
Reference in New Issue
Block a user