mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 18:35:59 +08:00
Fix serialization of AnimationChannel::target_node when it is zero
This commit is contained in:
parent
a977f7a16f
commit
a75355b018
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user