fix for regression in 'object.shape_key_transfer' operator since BMesh merge, using the RELATIVE_FACE method failed.

This commit is contained in:
Campbell Barton
2013-02-25 03:54:16 +00:00
parent d9e83818b5
commit 63feb31b35

View File

@@ -381,11 +381,8 @@ class ShapeTransfer(Operator):
(orig_shape_coords[i] - orig_coords[i]))
elif mode == 'RELATIVE_FACE':
loops_vidxs = me.loops.foreach_get("vert_index")
for poly in me.polygons:
l_start = l_stop = poly.loop_start
l_stop += poly.loop_total
idxs = loops_vidxs[l_start:l_stop]
idxs = poly.vertices[:]
v_before = idxs[-2]
v = idxs[-1]
for v_after in idxs: