updated py scripts for changes in mathutils

This commit is contained in:
2006-07-27 03:15:37 +00:00
parent 403b62fbcf
commit 3f5e14abef
6 changed files with 8 additions and 14 deletions

View File

@@ -74,8 +74,8 @@ class edgeLoop:
# Use next and prev, nextDist, prevDist
# Get Loops centre.
fac= 1.0/len(loop)
self.centre= reduce(lambda a,b: a+b.co*fac, loop, Mathutils.Vector())
fac= len(loop)
self.centre= reduce(lambda a,b: a+b.co/fac, loop, Mathutils.Vector())
# Convert Vert loop to Edges.
self.edges = []