[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12091] trunk/blender/release/scripts/ 3ds_import.py: meshes with no faces would raise an eror when setting their .faceUV to true.

Campbell Barton cbarton at metavr.com
Wed Sep 19 11:15:16 CEST 2007


Revision: 12091
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12091
Author:   campbellbarton
Date:     2007-09-19 11:15:16 +0200 (Wed, 19 Sep 2007)

Log Message:
-----------
meshes with no faces would raise an eror when setting their .faceUV to true.

Modified Paths:
--------------
    trunk/blender/release/scripts/3ds_import.py

Modified: trunk/blender/release/scripts/3ds_import.py
===================================================================
--- trunk/blender/release/scripts/3ds_import.py	2007-09-19 08:07:47 UTC (rev 12090)
+++ trunk/blender/release/scripts/3ds_import.py	2007-09-19 09:15:16 UTC (rev 12091)
@@ -382,7 +382,7 @@
 			# +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):
 					





More information about the Bf-blender-cvs mailing list