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 a977f7a16f
commit a75355b018

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