[Bf-extensions-cvs] [22f3abe8] master: small uv fix to match with updated fxb importer
Kalle-Samuli Riihikoski
noreply at git.blender.org
Wed Mar 6 15:46:32 CET 2019
Commit: 22f3abe81afd1ad4fcfc712d674a6046baee000a
Author: Kalle-Samuli Riihikoski
Date: Wed Mar 6 16:45:34 2019 +0200
Branches: master
https://developer.blender.org/rBA22f3abe81afd1ad4fcfc712d674a6046baee000a
small uv fix to match with updated fxb importer
===================================================================
M io_coat3D/__init__.py
M io_coat3D/tex.py
===================================================================
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
More information about the Bf-extensions-cvs
mailing list