diff --git a/object_fracture_voroni/__init__.py b/object_fracture_voroni/__init__.py index 3a6e507a21a4a9d6c749490370e19f3de3477e3a..611a37ac49570cbbf60856bbb05acf993826a861 100644 --- a/object_fracture_voroni/__init__.py +++ b/object_fracture_voroni/__init__.py @@ -59,7 +59,10 @@ def main_object(scene, obj, level, **kw): use_island_split = kw_copy.pop("use_island_split") from . import fracture_cell_setup - + + # not essential but selection is visual distraction. + obj.select = False + if kw_copy["use_debug_redraw"]: obj_draw_type_prev = obj.draw_type obj.draw_type = 'WIRE' diff --git a/object_fracture_voroni/fracture_cell_calc.py b/object_fracture_voroni/fracture_cell_calc.py index b7416dd88cb000a5834984a56a8e2a15ad1eec07..3b9e5a16dc84e8e81025392dda28c200965b771c 100644 --- a/object_fracture_voroni/fracture_cell_calc.py +++ b/object_fracture_voroni/fracture_cell_calc.py @@ -22,7 +22,7 @@ def points_as_bmesh_cells(verts, points, - margin_bounds=0.01, + margin_bounds=0.05, margin_cell=0.0): import mathutils from mathutils import Vector diff --git a/object_fracture_voroni/fracture_cell_setup.py b/object_fracture_voroni/fracture_cell_setup.py index c2661a10a8bc8aad93230c1231aaaf7eea227483..cf87be263c652fd7515be2a01103f0a62b0d8549 100644 --- a/object_fracture_voroni/fracture_cell_setup.py +++ b/object_fracture_voroni/fracture_cell_setup.py @@ -216,7 +216,7 @@ def cell_fracture_objects(scene, obj, bm_vert.tag = True import mathutils - bmesh.ops.remove_doubles(bm, verts=bm.verts, dist=0.0001) + bmesh.ops.remove_doubles(bm, verts=bm.verts, dist=0.005) try: bmesh.ops.convex_hull(bm, input=bm.verts) except RuntimeError: @@ -352,7 +352,7 @@ def cell_fracture_boolean(scene, obj, objects, if use_debug_redraw: _redraw_yasiamevil() - if use_island_split: + if apply and use_island_split: # this is ugly and Im not proud of this - campbell objects_islands = [] for obj_cell in objects_boolean: @@ -375,4 +375,6 @@ def cell_fracture_boolean(scene, obj, objects, objects_boolean = objects_islands + scene.update() + return objects_boolean