[Bf-extensions-cvs] [8d862e9] master: fix for 2.73 lookup table
Brendon Murphy
noreply at git.blender.org
Thu Dec 25 07:11:51 CET 2014
Commit: 8d862e9ec3971513f469f581a04038fc120e9385
Author: Brendon Murphy
Date: Thu Dec 25 17:11:22 2014 +1100
Branches: master
https://developer.blender.org/rBA8d862e9ec3971513f469f581a04038fc120e9385
fix for 2.73 lookup table
===================================================================
M mesh_inset/__init__.py
===================================================================
diff --git a/mesh_inset/__init__.py b/mesh_inset/__init__.py
index dc5cd08..4a7d527 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)
More information about the Bf-extensions-cvs
mailing list