From a75355b018b9ac7149ce5627f931071d893f1980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Escales?= Date: Tue, 18 Apr 2023 21:03:39 +0200 Subject: [PATCH] Fix serialization of AnimationChannel::target_node when it is zero --- tiny_gltf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index 46e3495..0e9799e 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -6970,7 +6970,7 @@ static void SerializeGltfAnimationChannel(const AnimationChannel &channel, { detail::json target; - if (channel.target_node > 0) { + if (channel.target_node >= 0) { SerializeNumberProperty("node", channel.target_node, target); }