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:
authorKalle-Samuli Riihikoski <haikalle@gmail.com>2018-11-10 19:13:19 +0300
committerKalle-Samuli Riihikoski <haikalle@gmail.com>2018-11-10 19:13:19 +0300
commit7dbc0b2324368458115640e4659d0f630db6d2d0 (patch)
tree92b76fe83e69046b2c40b6bca886006120c44d6d
parent2bb579b79809f623d100764537e8406767033e1b (diff)
Texture_list bug fixed
-rw-r--r--io_coat3D/tex.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/io_coat3D/tex.py b/io_coat3D/tex.py
index c9feec95..bb6ffe68 100644
--- a/io_coat3D/tex.py
+++ b/io_coat3D/tex.py
@@ -54,14 +54,15 @@ def readtexturefolder(mat_list,texturelist,is_new): #read textures from texture
for texture_info in texturelist:
+ print('TEX: ',texture_info )
if texture_info[0] == mat_list[0].name:
if texture_info[2] == 'color' or texture_info[2] == 'diffuse':
texcoat['color'].append(texture_info[3])
- if texture_info[2] == 'metalness' or texture_info[2] == 'reflection':
+ if texture_info[2] == 'metalness' or texture_info[2] == 'specular':
texcoat['metalness'].append(texture_info[3])
if texture_info[2] == 'rough' or texture_info[2] == 'roughness':
texcoat['rough'].append(texture_info[3])
- if texture_info[2] == 'nmap' or texture_info[2] == 'normal_map':
+ if texture_info[2] == 'nmap' or texture_info[2] == 'normalmap':
texcoat['nmap'].append(texture_info[3])
if texture_info[2] == 'emissive':
texcoat['emissive'].append(texture_info[3])