Skip to content

Commit

Permalink
Fix serialization of AnimationChannel::target_node when it is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
louwaque committed Apr 18, 2023
1 parent a977f7a commit a75355b
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 a75355b

Please sign in to comment.