[Bf-extensions-cvs] [29713a43] master: glTF importer: fix bad check for node id 0

Julien Duroure noreply at git.blender.org
Tue Mar 19 18:26:42 CET 2019

Commit: 29713a430fdb030002d73b8cdf2522c84c73ef05
Author: Julien Duroure
Date:   Tue Mar 19 18:26:23 2019 +0100
Branches: master

glTF importer: fix bad check for node id 0


M	io_scene_gltf2/blender/imp/gltf2_blender_node.py


diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_node.py b/io_scene_gltf2/blender/imp/gltf2_blender_node.py
index e7f68dca..282144ba 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_node.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_node.py
@@ -80,7 +80,7 @@ class BlenderNode():
             # Transforms apply only if this mesh is not skinned
             # See implementation node of gltf2 specification
-            if not (pynode.mesh and pynode.skin is not None):
+            if not (pynode.mesh is not None and pynode.skin is not None):
                 BlenderNode.set_transforms(gltf, node_idx, pynode, obj, parent)
             pynode.blender_object = obj.name
             BlenderNode.set_parent(gltf, obj, parent)

More information about the Bf-extensions-cvs mailing list