diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-07 00:27:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-07 00:27:14 +0400 |
commit | aab64350c1e6af97ea7e76aea1fd77db32caf9a3 (patch) | |
tree | 4c2650d59786e4a33d4b80227343253b1a4b2302 /object_fracture_cell | |
parent | 5e340e505c3d238ce5021b0ac01046797ee50eda (diff) |
added back randomization its needed saddly
Diffstat (limited to 'object_fracture_cell')
-rw-r--r-- | object_fracture_cell/fracture_cell_setup.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/object_fracture_cell/fracture_cell_setup.py b/object_fracture_cell/fracture_cell_setup.py index 2f6625bb..9a6ccbbf 100644 --- a/object_fracture_cell/fracture_cell_setup.py +++ b/object_fracture_cell/fracture_cell_setup.py @@ -109,6 +109,8 @@ def _points_from_object(obj, source): points.extend([p for spline in get_splines(gp) for p in spline]) + print("Found %d points" % len(points)) + return points @@ -209,7 +211,7 @@ def cell_fracture_objects(scene, obj, # WORKAROUND FOR CONVEX HULL BUG/LIMIT # XXX small noise import random - def R(): return (random.random() - 0.5) * 0.01 + def R(): return (random.random() - 0.5) * 0.001 # XXX small noise for i, co in enumerate(cell_points): |