From b97d34cfee4d33129d4637010b4e9a1fda44bdbb Mon Sep 17 00:00:00 2001 From: johan bowald Date: Mon, 2 Apr 2018 07:29:29 +0200 Subject: [PATCH] bugfix, serializer skipped texture samplers refering to first index. --- tiny_gltf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index 25f9bf4..2af9664 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -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);