Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duroure <julien.duroure@gmail.com>2019-01-24 23:37:16 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-01-24 23:37:16 +0300
commit22e76bba29b451f83e496d0b04f545c71e0daeba (patch)
tree5a2900a3625372481fa8b963c3b4b464ae294b2e
parentcf3ec0d146658aec41f08f002ca4b80f8d4f576b (diff)
glTF impoter: Fix bad check when node id is 0
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py2
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: