diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-01-24 23:37:16 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-01-24 23:37:16 +0300 |
commit | 22e76bba29b451f83e496d0b04f545c71e0daeba (patch) | |
tree | 5a2900a3625372481fa8b963c3b4b464ae294b2e | |
parent | cf3ec0d146658aec41f08f002ca4b80f8d4f576b (diff) |
glTF impoter: Fix bad check when node id is 0
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py b/io_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py index 095d2a1d..9e632255 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py @@ -53,7 +53,7 @@ class BlenderBoneAnim(): translation_keyframe = loc_gltf_to_blender(values[idx * 3 + 1]) else: translation_keyframe = loc_gltf_to_blender(values[idx]) - if not node.parent: + if node.parent is None: parent_mat = Matrix() else: if not gltf.data.nodes[node.parent].is_joint: |