Setup tracking scene works again now
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 26 Mar 2012 07:51:47 +0000 (07:51 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 26 Mar 2012 07:51:47 +0000 (07:51 +0000)
release/scripts/startup/bl_operators/clip.py

index 7b5185d725fbbf32b48c7d66a8abe201c8056721..422a6279cb4fd72a5b82fa4c3777bde619786e03 100644 (file)
@@ -717,8 +717,8 @@ class CLIP_OT_setup_tracking_scene(Operator):
         mesh.vertices.foreach_set("co", unpack_list(vertices))
 
         # BMESH_TODO - use polygons
-        mesh.faces.add(len(faces))
-        mesh.faces.foreach_set("vertices_raw", unpack_face_list(faces))
+        mesh.tessfaces.add(len(faces))
+        mesh.tessfaces.foreach_set("vertices_raw", unpack_face_list(faces))
 
         mesh.update(calc_edges=True)