Page MenuHome

gltf import error (2.81, 2.82)
Closed, ResolvedPublic

Description

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.30

Blender Version
Broken: version: 2.81 (sub 15), branch: master, commit date: 2019-10-14 23:04, hash: rB695cbf5eef79
Broken: version: 2.82 (sub 0), branch: master, commit date: 2019-10-14 19:07, hash: rB9a85592ddea2
Worked: (optional)
the same exemple file import fine in Blender 2.80

Short description of error
[Please fill out a short description of the error here]
just try to import a gltf file with textures

as exemple one of the file i use is a free downloadable file from sketchfab dowwnloaded as gltf
https://sketchfab.com/3d-models/paul-costa-nyra-game-character-96f558dea845400495e03e64d053b517

Exact steps for others to reproduce the error
open blender 2.81 or 2.82
import a gltf file (file with textures)
the process will stop quickly with this error

here the error from Blender 2.81 (is the same with Blender 2.82)

Traceback (most recent call last):

File "C:\LUC\Program Files\Blender\blender-2.81\2.81\scripts\addons\io_scene_gltf2\__init__.py", line 758, in execute
  return self.import_gltf2(context)
File "C:\LUC\Program Files\Blender\blender-2.81\2.81\scripts\addons\io_scene_gltf2\__init__.py", line 779, in import_gltf2
  BlenderGlTF.create(self.gltf_importer)
File "C:\LUC\Program Files\Blender\blender-2.81\2.81\scripts\addons\io_scene_gltf2\blender\imp\gltf2_blender_gltf.py", line 41, in create
  BlenderScene.create(gltf, scene_idx)
File "C:\LUC\Program Files\Blender\blender-2.81\2.81\scripts\addons\io_scene_gltf2\blender\imp\gltf2_blender_scene.py", line 80, in create
  BlenderNode.create(gltf, node_idx, None)  # None => No parent
File "C:\LUC\Program Files\Blender\blender-2.81\2.81\scripts\addons\io_scene_gltf2\blender\imp\gltf2_blender_node.py", line 169, in create
  BlenderNode.create(gltf, child_idx, node_idx)
File "C:\LUC\Program Files\Blender\blender-2.81\2.81\scripts\addons\io_scene_gltf2\blender\imp\gltf2_blender_node.py", line 169, in create
  BlenderNode.create(gltf, child_idx, node_idx)
File "C:\LUC\Program Files\Blender\blender-2.81\2.81\scripts\addons\io_scene_gltf2\blender\imp\gltf2_blender_node.py", line 169, in create
  BlenderNode.create(gltf, child_idx, node_idx)
[Previous line repeated 2 more times]
File "C:\LUC\Program Files\Blender\blender-2.81\2.81\scripts\addons\io_scene_gltf2\blender\imp\gltf2_blender_node.py", line 63, in create
  mesh = BlenderMesh.create(gltf, pynode.mesh, node_idx, parent)
File "C:\LUC\Program Files\Blender\blender-2.81\2.81\scripts\addons\io_scene_gltf2\blender\imp\gltf2_blender_mesh.py", line 58, in create
  BlenderMaterial.create(gltf, prim.material, vertex_color)
File "C:\LUC\Program Files\Blender\blender-2.81\2.81\scripts\addons\io_scene_gltf2\blender\imp\gltf2_blender_material.py", line 81, in create
  BlenderPbr.create(gltf, pymaterial.pbr_metallic_roughness, mat.name, vertex_color)
File "C:\LUC\Program Files\Blender\blender-2.81\2.81\scripts\addons\io_scene_gltf2\blender\imp\gltf2_blender_pbrMetallicRoughness.py", line 29, in create
  BlenderPbr.create_nodetree(gltf, pypbr, mat_name, vertex_color)
File "C:\LUC\Program Files\Blender\blender-2.81\2.81\scripts\addons\io_scene_gltf2\blender\imp\gltf2_blender_pbrMetallicRoughness.py", line 308, in create_nodetree
  metallic_mapping.translation[0] = texture_transform_gltf_to_blender(tex_transform)['offset'][0]

AttributeError: 'ShaderNodeMapping' object has no attribute 'translation'

location: <unknown location>:-1

thx.