Merge pull request #62 from bowald/feature/serializer-handle-image-output

small bugfix, serializer skipped texture samplers refering to first index.
This commit is contained in:
Syoyo Fujita 2018-04-02 15:24:04 +09:00 committed by GitHub
commit 6c67da478f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);