diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2019-05-22 02:07:49 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2019-05-22 02:08:40 +0300 |
commit | 07ec645862275ffe2d60e2d6481080aa0ae8b1f0 (patch) | |
tree | d424245ce1c8eb6d21b1931a6ab97d8bb1436ad2 /object_fracture_cell | |
parent | 678f7523b013cdb81068e6e28f03cd724895f306 (diff) |
Remove base from addons
This is a follow up to rB0910932e71d2.
Diffstat (limited to 'object_fracture_cell')
-rw-r--r-- | object_fracture_cell/fracture_cell_setup.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/object_fracture_cell/fracture_cell_setup.py b/object_fracture_cell/fracture_cell_setup.py index 0412a206..fcafa247 100644 --- a/object_fracture_cell/fracture_cell_setup.py +++ b/object_fracture_cell/fracture_cell_setup.py @@ -324,6 +324,7 @@ def cell_fracture_boolean(context, obj, objects, objects_boolean = [] collection = context.collection scene = context.scene + view_layer = context.view_layer depsgraph = context.evaluated_depsgraph_get() if use_interior_hide and level == 0: @@ -394,9 +395,8 @@ def cell_fracture_boolean(context, obj, objects, if (not use_debug_bool) and use_island_split: # this is ugly and Im not proud of this - campbell - base = None - for base in scene.object_bases: - base.select_set(False) + for ob in view_layer.objects: + ob.select_set(True) for obj_cell in objects_boolean: obj_cell.select_set(True) |