diff options
author | Brendon Murphy <meta.androcto1@gmail.com> | 2014-12-25 09:11:22 +0300 |
---|---|---|
committer | Brendon Murphy <meta.androcto1@gmail.com> | 2014-12-25 09:11:22 +0300 |
commit | 8d862e9ec3971513f469f581a04038fc120e9385 (patch) | |
tree | 37472eb7872c09c8dccc6e8fa1cb5347eab3c940 /mesh_inset/__init__.py | |
parent | 3ae4be51d0271a1934c2e148f0099a1991def45e (diff) |
fix for 2.73 lookup table
Diffstat (limited to 'mesh_inset/__init__.py')
-rw-r--r-- | mesh_inset/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mesh_inset/__init__.py b/mesh_inset/__init__.py index dc5cd08f..4a7d527f 100644 --- a/mesh_inset/__init__.py +++ b/mesh_inset/__init__.py @@ -21,8 +21,8 @@ bl_info = { "name": "Inset Polygon", "author": "Howard Trickey", - "version": (1, 0), - "blender": (2, 69, 0), + "version": (1, 0. 1), + "blender": (2, 73, 0), "location": "View3D > Tools", "description": "Make an inset polygon inside selection.", "warning": "", @@ -151,10 +151,12 @@ def do_inset(mesh, amount, height, region, as_percent): new_faces = [] start_faces = len(bm.faces) for i, newf in enumerate(blender_faces): + bm.verts.ensure_lookup_table() vs = [bm.verts[j] for j in newf] # copy face attributes from old face that it was derived from bfi = blender_old_face_index[i] if bfi and 0 <= bfi < start_faces: + bm.faces.ensure_lookup_table() oldface = bm.faces[bfi] bfacenew = bm.faces.new(vs, oldface) # bfacenew.copy_from_face_interp(oldface) |