bugfix, serializer skipped texture samplers refering to first index.

This commit is contained in:
johan bowald 2018-04-02 07:29:29 +02:00
parent 142aed7499
commit b97d34cfee

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