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:
authorJulien Duroure <julien.duroure@gmail.com>2019-05-07 10:59:14 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-05-07 10:59:14 +0300
commit447abeb9be69dcef24ea9c47bb2bde4488f9cb83 (patch)
tree1bb1318fb212e1371febde3e5410e1bc15efda86 /io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py
parentae8d56888683894676f924232b1f66c879c8a82c (diff)
glTF exporter: image texture: manage rough without metal, metal without rough
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py')
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py
index 06cfaaed..354ddf2c 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py
@@ -57,7 +57,7 @@ def __filter_texture_info(blender_shader_sockets_or_texture_slots, export_settin
if any(any(a != b for a, b in zip(__get_tex_from_socket(elem).shader_node.image.size, resolution))
for elem in blender_shader_sockets_or_texture_slots):
def format_image(image_node):
- return "{} ({}x{})".format(image_node.name, image_node.image.size[0], image_node.image.size[1])
+ return "{} ({}x{})".format(image_node.image.name, image_node.image.size[0], image_node.image.size[1])
images = [format_image(__get_tex_from_socket(elem).shader_node) for elem in
blender_shader_sockets_or_texture_slots]