Merge pull request #415 from louwaque/release

Fix serialization of AnimationChannel::target_node when it is zero
This commit is contained in:
Syoyo Fujita 2023-04-19 05:17:06 +09:00 committed by GitHub
commit 5c06b7d03b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6970,7 +6970,7 @@ static void SerializeGltfAnimationChannel(const AnimationChannel &channel,
{ {
detail::json target; detail::json target;
if (channel.target_node > 0) { if (channel.target_node >= 0) {
SerializeNumberProperty("node", channel.target_node, target); SerializeNumberProperty("node", channel.target_node, target);
} }