diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-18 09:35:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-18 09:35:26 +0300 |
commit | e6027018fef05dabe89983c6954a3a943604ed70 (patch) | |
tree | 2bd918de135f2d80ee02da308703d095564f1f28 /release | |
parent | a1de0fbf1708010f618864f605d602b4e658f329 (diff) |
recent commit broke Mesh.from_pydata()
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/bpy_types.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index 441174e3b40..61c3f11ccef 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -314,13 +314,13 @@ class Mesh(bpy_types.ID): :arg faces: iterator of faces, each faces contains three or four indices to the *vertices* argument. eg: [(5, 6, 8, 9), (1, 2, 3), ...] :type faces: iterable object """ - self.vertices.add(len(verts)) + self.vertices.add(len(vertices)) self.edges.add(len(edges)) self.faces.add(len(faces)) - verts_flat = [f for v in verts for f in v] - self.vertices.foreach_set("co", verts_flat) - del verts_flat + vertices_flat = [f for v in vertices for f in v] + self.vertices.foreach_set("co", vertices_flat) + del vertices_flat edges_flat = [i for e in edges for i in e] self.edges.foreach_set("vertices", edges_flat) |