diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-10 21:28:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-10 21:28:53 +0400 |
commit | 8012053e1e178c8cabb133e05dc1e36d52908fa7 (patch) | |
tree | fd3f79b7e8cd9ee165ff2ece9a1ef9d2cf7ca058 /add_mesh_solid.py | |
parent | 0507e7a5b8dd558e12c906dd398a6e0bd7f76911 (diff) |
cleanup
- remove unused imports
- remove/comment unused vars
- fix for some bugs with unused vars being used
Diffstat (limited to 'add_mesh_solid.py')
-rw-r--r-- | add_mesh_solid.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/add_mesh_solid.py b/add_mesh_solid.py index 01825d29..aa41e50c 100644 --- a/add_mesh_solid.py +++ b/add_mesh_solid.py @@ -35,7 +35,7 @@ bl_info = { import bpy from bpy.props import FloatProperty,EnumProperty,BoolProperty from math import sqrt -from mathutils import Vector,Matrix +from mathutils import Vector from functools import reduce from bpy_extras.object_utils import object_data_add @@ -141,9 +141,6 @@ def source(plato): # processes the raw data from source def createSolid(plato,vtrunc,etrunc,dual,snub): - verts = [] - faces = [] - edges = [] # the duals from each platonic solid dualSource = {"4":"4", "6":"8", @@ -493,8 +490,7 @@ class Solids(bpy.types.Operator): # resize to normal size, or if keepSize, make sure all verts are of length 'size' if self.keepSize: - if dual: rad = self.size/verts[-1].length - else: rad = self.size/verts[0].length + rad = self.size/verts[-1 if self.dual else 0].length else: rad = self.size verts = [i*rad for i in verts] |