mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-08-09 14:49:25 +00:00
Merge pull request #220 from Selmar/doublesided_default_serialization
Doublesided default serialization
This commit is contained in:
@@ -6618,7 +6618,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;
|
||||
|
||||
Reference in New Issue
Block a user