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>2019-03-06 17:45:34 +0300
committerKalle-Samuli Riihikoski <haikalle@gmail.com>2019-03-06 17:45:34 +0300
commit22f3abe81afd1ad4fcfc712d674a6046baee000a (patch)
tree1cc34e4b343b8bf805e6c348bef1fe2972793022
parent68867dbb2b2006411f3cdb87767756f768aaa561 (diff)
small uv fix to match with updated fxb importer
-rw-r--r--io_coat3D/__init__.py3
-rw-r--r--io_coat3D/tex.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py
index d8d086f5..78a94f09 100644
--- a/io_coat3D/__init__.py
+++ b/io_coat3D/__init__.py
@@ -251,11 +251,12 @@ def updatemesh(objekti, proxy, texturelist):
objekti.select_set(True)
uv_count = len(proxy.data.uv_layers)
+ print('proxy uv layers count:', uv_count)
index = 0
while(index < uv_count):
for poly in proxy.data.polygons:
for indi in poly.loop_indices:
- if(proxy.data.uv_layers[index].data[indi].uv[0] != -1):
+ if(proxy.data.uv_layers[index].data[indi].uv[0] != 0 and proxy.data.uv_layers[index].data[indi].uv[1] != 0):
if(udim_textures):
udim = proxy.data.uv_layers[index].name
diff --git a/io_coat3D/tex.py b/io_coat3D/tex.py
index 4b7b457c..edb03d36 100644
--- a/io_coat3D/tex.py
+++ b/io_coat3D/tex.py
@@ -129,7 +129,6 @@ def link_material_into_uvset(objekti, material, material_index):
for vert_idx, loop_idx in zip(face.vertices, face.loop_indices):
uv_coords = layer.data[loop_idx].uv
-
def readtexturefolder(objekti, mat_list, texturelist, is_new, udim_textures): #read textures from texture file
# Let's check are we UVSet or MATERIAL mode
@@ -230,7 +229,6 @@ def readtexturefolder(objekti, mat_list, texturelist, is_new, udim_textures): #r
createnodes(index_mat, texcoat, create_group_node, tile_list, objekti)
-
def createnodes(active_mat,texcoat, create_group_node, tile_list, objekti): # Cretes new nodes and link textures into them
bring_color = True # Meaning of these is to check if we can only update textures or do we need to create new nodes
bring_metalness = True