From 2f46df39b4adae4e54a16cfbb2105159e66ae184 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 19 Sep 2007 09:15:16 +0000 Subject: [PATCH] meshes with no faces would raise an eror when setting their .faceUV to true. --- release/scripts/3ds_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/scripts/3ds_import.py b/release/scripts/3ds_import.py index 8324b668284..07da4df1603 100644 --- a/release/scripts/3ds_import.py +++ b/release/scripts/3ds_import.py @@ -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):