meshes with no faces would raise an eror when setting their .faceUV to true.

This commit is contained in:
2007-09-19 09:15:16 +00:00
parent 9f17eae3f0
commit 2f46df39b4

View File

@@ -382,7 +382,7 @@ def process_next_chunk(file, previous_chunk, importedObjects, IMAGE_SEARCH):
# +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 )
if contextMeshUV or img:
if bmesh.faces and (contextMeshUV or img):
bmesh.faceUV= 1
for ii, i in enumerate(faces):