Correction to previous commit
Calling ensure_lookup_table for each face is stupid! :/ (Noted by Sergey - thx)
This commit is contained in:
parent
61aede4305
commit
d6a6950547
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user