Skip to content
Snippets Groups Projects
Commit 29713a43 authored by Julien Duroure's avatar Julien Duroure
Browse files

glTF importer: fix bad check for node id 0

parent 1fe22512
No related branches found
No related tags found
No related merge requests found
...@@ -80,7 +80,7 @@ class BlenderNode(): ...@@ -80,7 +80,7 @@ class BlenderNode():
# Transforms apply only if this mesh is not skinned # Transforms apply only if this mesh is not skinned
# See implementation node of gltf2 specification # 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) BlenderNode.set_transforms(gltf, node_idx, pynode, obj, parent)
pynode.blender_object = obj.name pynode.blender_object = obj.name
BlenderNode.set_parent(gltf, obj, parent) BlenderNode.set_parent(gltf, obj, parent)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment