mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-16 11:05:53 +08:00
Merge pull request #220 from Selmar/doublesided_default_serialization
Doublesided default serialization
This commit is contained in:
commit
2f26eddac4
@ -6618,6 +6618,7 @@ static void SerializeGltfMaterial(Material &material, json &o) {
|
|||||||
SerializeStringProperty("alphaMode", material.alphaMode, o);
|
SerializeStringProperty("alphaMode", material.alphaMode, o);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(material.doubleSided != false)
|
||||||
JsonAddMember(o, "doubleSided", json(material.doubleSided));
|
JsonAddMember(o, "doubleSided", json(material.doubleSided));
|
||||||
|
|
||||||
if (material.normalTexture.index > -1) {
|
if (material.normalTexture.index > -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user