Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'object_fracture_cell')
-rw-r--r--object_fracture_cell/fracture_cell_setup.py6
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)