From f82672bd2f4b4b54360462e130b5d0c7013440f5 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Tue, 18 Sep 2012 10:28:50 +0200 Subject: [PATCH] fix for blender-2.63 --- io_import_off.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5