diff options
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_gltf.py')
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_gltf.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py b/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py index 7acbb81e..625b5917 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py @@ -169,6 +169,11 @@ class BlenderGlTF(): if 'glossinessFactor' not in material.extensions['KHR_materials_pbrSpecularGlossiness'].keys(): material.extensions['KHR_materials_pbrSpecularGlossiness']['glossinessFactor'] = 1.0 + # images + if gltf.data.images is not None: + for img in gltf.data.images: + img.blender_image_name = None + if gltf.data.nodes is None: # Something is wrong in file, there is no nodes return |