Fix serialization of AnimationChannel::target_node when it is zero

This commit is contained in:
Loïc Escales
2023-04-18 21:03:39 +02:00
parent e2ade37808
commit 578c518fd0

View File

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