[Bf-extensions-cvs] [dc4fe29] : fix for 2.73 lookup table
Brendon Murphy
noreply at git.blender.org
Tue Jan 6 13:56:10 CET 2015
Commit: dc4fe2934b970b408038643ee242aa81e8a50c1a
Author: Brendon Murphy
Date: Thu Dec 25 17:11:22 2014 +1100
Branches:
https://developer.blender.org/rBAdc4fe2934b970b408038643ee242aa81e8a50c1a
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