Skip to content

Commit

Permalink
Merge pull request #415 from louwaque/release
Browse files Browse the repository at this point in the history
Fix serialization of AnimationChannel::target_node when it is zero
  • Loading branch information
syoyo authored Apr 18, 2023
2 parents a977f7a + a75355b commit 5c06b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiny_gltf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 5c06b7d

Please sign in to comment.