diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-27 03:31:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-27 03:31:22 +0400 |
commit | d7752e1b50740a81f1196063ee3466be0f2b5150 (patch) | |
tree | f4ded7c5c3f80d5878745ae4881b59b630e8153b /add_mesh_BoltFactory | |
parent | 8d941d5a9d675a9a4ef7700f69a2b59efd6bf7b2 (diff) |
update for rna api changes
Diffstat (limited to 'add_mesh_BoltFactory')
-rw-r--r-- | add_mesh_BoltFactory/createMesh.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/add_mesh_BoltFactory/createMesh.py b/add_mesh_BoltFactory/createMesh.py index 3fd892e3..f6562072 100644 --- a/add_mesh_BoltFactory/createMesh.py +++ b/add_mesh_BoltFactory/createMesh.py @@ -2085,7 +2085,9 @@ def Create_New_Mesh(props, context, align_matrix): mesh = bpy.data.meshes.new(sMeshName) - mesh.add_geometry((len(verts)), 0, int(len(faces))) + mesh.vertices.add(len(verts)) + mesh.faces.add(len(faces)) + mesh.vertices.foreach_set("co", unpack_list(verts)) mesh.faces.foreach_set("vertices_raw", unpack_face_list(faces)) |