mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-07-06 02:35:12 +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);
|
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) {
|
if (material.normalTexture.index > -1) {
|
||||||
json texinfo;
|
json texinfo;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user