diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-10-22 06:48:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-10-22 06:48:22 +0300 |
commit | be8893ce16a6841fe723bd4b504ec5f039719d25 (patch) | |
tree | fa53e31a18bfcafcf1e6c0bfa6488cf38fb53f86 /object_fracture_cell/fracture_cell_setup.py | |
parent | 0941b635cc762eeca9383dbb3c10ea580c5aa547 (diff) |
Fix T81940: Cell Fracture fails with recursion & target collection
Diffstat (limited to 'object_fracture_cell/fracture_cell_setup.py')
-rw-r--r-- | object_fracture_cell/fracture_cell_setup.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/object_fracture_cell/fracture_cell_setup.py b/object_fracture_cell/fracture_cell_setup.py index cb72aa1f..f083af2f 100644 --- a/object_fracture_cell/fracture_cell_setup.py +++ b/object_fracture_cell/fracture_cell_setup.py @@ -122,7 +122,7 @@ def _points_from_object(depsgraph, scene, obj, source): return points -def cell_fracture_objects(context, obj, +def cell_fracture_objects(context, collection, obj, source={'PARTICLE_OWN'}, source_limit=0, source_noise=0.0, @@ -140,7 +140,6 @@ def cell_fracture_objects(context, obj, from . import fracture_cell_calc depsgraph = context.evaluated_depsgraph_get() scene = context.scene - collection = context.collection view_layer = context.view_layer # ------------------------------------------------------------------------- @@ -307,7 +306,7 @@ def cell_fracture_objects(context, obj, return objects -def cell_fracture_boolean(context, obj, objects, +def cell_fracture_boolean(context, collection, obj, objects, use_debug_bool=False, clean=True, use_island_split=False, @@ -318,7 +317,6 @@ def cell_fracture_boolean(context, obj, objects, ): objects_boolean = [] - collection = context.collection scene = context.scene view_layer = context.view_layer |