mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 01:56:02 +08:00
Merge pull request #415 from louwaque/release
Fix serialization of AnimationChannel::target_node when it is zero
This commit is contained in:
commit
5c06b7d03b
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user