Correction to previous commit

Calling ensure_lookup_table for each face is stupid! :/
(Noted by Sergey - thx)
This commit is contained in:
Julian Eisel 2015-03-05 20:36:58 +01:00
parent 61aede4305
commit d6a6950547

View File

@ -89,8 +89,8 @@ class AddBox(bpy.types.Operator):
for v_co in verts_loc:
bm.verts.new(v_co)
bm.verts.ensure_lookup_table()
for f_idx in faces:
bm.verts.ensure_lookup_table()
bm.faces.new([bm.verts[i] for i in f_idx])
bm.to_mesh(mesh)