diff options
-rw-r--r-- | object_fracture_cell/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/object_fracture_cell/__init__.py b/object_fracture_cell/__init__.py index f3641506..037ed15c 100644 --- a/object_fracture_cell/__init__.py +++ b/object_fracture_cell/__init__.py @@ -65,6 +65,7 @@ def main_object(context, obj, level, **kw): use_sharp_edges = kw_copy.pop("use_sharp_edges") use_sharp_edges_apply = kw_copy.pop("use_sharp_edges_apply") + scene = context.scene collection = context.collection if level != 0: @@ -156,6 +157,7 @@ def main_object(context, obj, level, **kw): group = bpy.data.collections.get(collection_name) if group is None: group = bpy.data.collections.new(collection_name) + collection.children.link(group) group_objects = group.objects[:] for obj_cell in objects: if obj_cell not in group_objects: |