Skip to content

Commit

Permalink
some fixes for gstretch
Browse files Browse the repository at this point in the history
  • Loading branch information
meta-androcto committed Jan 9, 2015
1 parent df24402 commit fe2a5b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mesh_looptools.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,7 @@ def move_verts(object, bm, mapping, move, lock, influence):
if influence < 0:
new_loc = loc
else:
bm.verts.ensure_lookup_table()
new_loc = loc*(influence/100) + \
bm.verts[index].co*((100-influence)/100)
bm.verts[index].co = new_loc
Expand Down Expand Up @@ -2801,7 +2802,9 @@ def gstretch_match_loops_strokes(loops, strokes, object, bm_mod):
loop_centers = []
for loop in loops:
center = mathutils.Vector()

for v_index in loop[0]:
bm_mod.verts.ensure_lookup_table()
center += bm_mod.verts[v_index].co
center /= len(loop[0])
center = object.matrix_world * center
Expand Down

0 comments on commit fe2a5b5

Please sign in to comment.