From: Stefan Huber Date: Tue, 18 Sep 2012 08:28:50 +0000 (+0200) Subject: fix for blender-2.63 X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=f82672bd2f4b4b54360462e130b5d0c7013440f5;p=io_import_off.git fix for blender-2.63 --- diff --git a/io_import_off.py b/io_import_off.py index 6b7f9dc..6a608ed 100644 --- a/io_import_off.py +++ b/io_import_off.py @@ -156,9 +156,9 @@ def importFile(filepath, context): # Add given number of vertices and faces me.vertices.add( len(vertexdata)//3 ) - me.faces.add( len(facedata)//4 ) + me.tessfaces.add( len(facedata)//4 ) me.vertices.foreach_set("co", vertexdata) - me.faces.foreach_set("vertices_raw", facedata) + me.tessfaces.foreach_set("vertices_raw", facedata) me.update() ob = bpy.data.objects.new("Mesh", me)