Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_gltf.py')
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_gltf.py5
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