Commit a719fe45 authored by Campbell Barton's avatar Campbell Barton

Move ensure_lookup_table outside the loop

parent 5bcd8273
......@@ -307,10 +307,10 @@ def do_creaprim(self, mesh, objname, addondir):
posn2 += 1
strlist.append(")")
strlist.append("]\n")
strlist.append(" bm.verts.ensure_lookup_table()\n")
strlist.append(" for verts in facelist:\n")
strlist.append(" vlist = []\n")
strlist.append(" for idx in verts:\n")
strlist.append(" bm.verts.ensure_lookup_table()\n")
strlist.append(" vlist.append(bm.verts[idxlist[idx]])\n")
strlist.append(" try:\n")
strlist.append(" bm.faces.new(vlist)\n")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment