[Bf-extensions-cvs] [22e76bba] master: glTF impoter: Fix bad check when node id is 0

Julien Duroure noreply at git.blender.org
Thu Jan 24 21:37:45 CET 2019


Commit: 22e76bba29b451f83e496d0b04f545c71e0daeba
Author: Julien Duroure
Date:   Thu Jan 24 21:37:16 2019 +0100
Branches: master
https://developer.blender.org/rBA22e76bba29b451f83e496d0b04f545c71e0daeba

glTF impoter: Fix bad check when node id is 0

===================================================================

M	io_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py

===================================================================

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:



More information about the Bf-extensions-cvs mailing list