MakeDupliFaces was using mesh.faces which was renamed to mesh.tessfaces.
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 27 Mar 2012 08:59:36 +0000 (08:59 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 27 Mar 2012 08:59:36 +0000 (08:59 +0000)
TODO about porting it to polys is still relevant.

release/scripts/startup/bl_operators/object.py

index 285e16999d0eea21a9645b72c8bbce3a75d96adb..21411193bfcd7a8bc518f5f69b6dc5ac9649e630 100644 (file)
@@ -624,10 +624,10 @@ class MakeDupliFace(Operator):
             mesh = bpy.data.meshes.new(data.name + "_dupli")
 
             mesh.vertices.add(len(face_verts) // 3)
-            mesh.faces.add(len(face_verts) // 12)
+            mesh.tessfaces.add(len(face_verts) // 12)
 
             mesh.vertices.foreach_set("co", face_verts)
-            mesh.faces.foreach_set("vertices_raw", faces)
+            mesh.tessfaces.foreach_set("vertices_raw", faces)
             mesh.update()  # generates edge data
 
             # pick an object to use