meshes with no faces would raise an eror when setting their .faceUV to true.
This commit is contained in:
@@ -382,7 +382,7 @@ def process_next_chunk(file, previous_chunk, importedObjects, IMAGE_SEARCH):
|
|||||||
# +1 because of DUMMYVERT
|
# +1 because of DUMMYVERT
|
||||||
face_mapping= bmesh.faces.extend( [ [ bmesh_verts[ myVertMapping[vindex]+1] for vindex in myContextMesh_facels[fIdx]] for fIdx in faces ], indexList=True )
|
face_mapping= bmesh.faces.extend( [ [ bmesh_verts[ myVertMapping[vindex]+1] for vindex in myContextMesh_facels[fIdx]] for fIdx in faces ], indexList=True )
|
||||||
|
|
||||||
if contextMeshUV or img:
|
if bmesh.faces and (contextMeshUV or img):
|
||||||
bmesh.faceUV= 1
|
bmesh.faceUV= 1
|
||||||
for ii, i in enumerate(faces):
|
for ii, i in enumerate(faces):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user