diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-07-27 07:15:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-07-27 07:15:37 +0400 |
commit | 3f5e14abefa7ee85a87c06ad3e90fc7e314f1927 (patch) | |
tree | 01b44d4492d8191fc83cfddb877d1f887409d6e1 /release/scripts/mesh_skin.py | |
parent | 403b62fbcf7480596f669029325b64eb369fe203 (diff) |
updated py scripts for changes in mathutils
Diffstat (limited to 'release/scripts/mesh_skin.py')
-rw-r--r-- | release/scripts/mesh_skin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/mesh_skin.py b/release/scripts/mesh_skin.py index 701d48cd1c7..b8c299ed37b 100644 --- a/release/scripts/mesh_skin.py +++ b/release/scripts/mesh_skin.py @@ -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 = [] |