[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3594] trunk/py/scripts/addons/ object_fracture_cell/fracture_cell_calc.py: minor edits, convert the scale arg to a tuple
Campbell Barton
ideasman42 at gmail.com
Sun Jul 8 04:03:30 CEST 2012
Revision: 3594
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3594
Author: campbellbarton
Date: 2012-07-08 02:03:27 +0000 (Sun, 08 Jul 2012)
Log Message:
-----------
minor edits, convert the scale arg to a tuple
Modified Paths:
--------------
trunk/py/scripts/addons/object_fracture_cell/fracture_cell_calc.py
Modified: trunk/py/scripts/addons/object_fracture_cell/fracture_cell_calc.py
===================================================================
--- trunk/py/scripts/addons/object_fracture_cell/fracture_cell_calc.py 2012-07-07 21:31:48 UTC (rev 3593)
+++ trunk/py/scripts/addons/object_fracture_cell/fracture_cell_calc.py 2012-07-08 02:03:27 UTC (rev 3594)
@@ -31,19 +31,13 @@
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 @@
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]
More information about the Bf-extensions-cvs
mailing list