]> git.sthu.org Git - io_import_off.git/commitdiff
fix for blender-2.63 master
authorStefan Huber <shuber2@gmx.at>
Tue, 18 Sep 2012 08:28:50 +0000 (10:28 +0200)
committerStefan Huber <shuber2@gmx.at>
Tue, 18 Sep 2012 08:28:50 +0000 (10:28 +0200)
io_import_off.py

index 6b7f9dcbdfb9fd0f2d146d1348c366551675a1e1..6a608ed8cbbbfe95da7ebaf6336d3e26f945c40f 100644 (file)
@@ -156,9 +156,9 @@ def importFile(filepath, context):
 \r
                # Add given number of vertices and faces\r
                me.vertices.add( len(vertexdata)//3 )\r
-               me.faces.add( len(facedata)//4 )\r
+               me.tessfaces.add( len(facedata)//4 )\r
                me.vertices.foreach_set("co", vertexdata)\r
-               me.faces.foreach_set("vertices_raw", facedata)\r
+               me.tessfaces.foreach_set("vertices_raw", facedata)\r
                me.update()\r
 \r
                ob = bpy.data.objects.new("Mesh", me)\r