glTF importer: fix bad check for node id 0

This commit is contained in:
Julien Duroure 2019-03-19 18:26:23 +01:00
parent 1fe2251292
commit 29713a430f
1 changed files with 1 additions and 1 deletions

View File

@ -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)