diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-08 06:03:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-08 06:03:27 +0400 |
commit | 308fce87021db23c655698d4892f8967ef84ceae (patch) | |
tree | 42ef3eac44f61c723697af92e20adf7b5559101e /object_fracture_cell | |
parent | 93226d0188184b45d2554572cca2f64f23cf5e8e (diff) |
minor edits, convert the scale arg to a tuple
Diffstat (limited to 'object_fracture_cell')
-rw-r--r-- | object_fracture_cell/fracture_cell_calc.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/object_fracture_cell/fracture_cell_calc.py b/object_fracture_cell/fracture_cell_calc.py index acd8e976..227512b4 100644 --- a/object_fracture_cell/fracture_cell_calc.py +++ b/object_fracture_cell/fracture_cell_calc.py @@ -31,19 +31,13 @@ def points_as_bmesh_cells(verts, from mathutils import Vector cells = [] - - ''' - if points_scale: - points_scale = (1.0 / points_scale[0], - 1.0 / points_scale[1], - 1.0 / points_scale[2], - ) - ''' points_sorted_current = [p for p in points] plane_indices = [] vertices = [] + if points_scale is not None: + points_scale = tuple(points_scale) if points_scale == (1.0, 1.0, 1.0): points_scale = None @@ -79,7 +73,7 @@ def points_as_bmesh_cells(verts, normal = points_sorted_current[j] - point_cell_current nlength = normal.length - if points_scale is not None: + if points_scale is not None: normal_alt = normal.copy() normal_alt.x *= points_scale[0] normal_alt.y *= points_scale[1] |