small uv fix to match with updated fxb importer
This commit is contained in:
parent
68867dbb2b
commit
22f3abe81a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue