mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-07-07 12:51:50 +08:00
bugfix, serializer skipped texture samplers refering to first index.
This commit is contained in:
parent
142aed7499
commit
b97d34cfee
@ -3910,7 +3910,7 @@ static void SerializeGltfSkin(Skin &skin, json &o) {
|
||||
}
|
||||
|
||||
static void SerializeGltfTexture(Texture &texture, json &o) {
|
||||
if (texture.sampler > 0) {
|
||||
if (texture.sampler > -1) {
|
||||
SerializeNumberProperty("sampler", texture.sampler, o);
|
||||
}
|
||||
SerializeNumberProperty("source", texture.source, o);
|
||||
|
Loading…
x
Reference in New Issue
Block a user