[Bf-extensions-cvs] [376d6096] master: object_fracture_cell: link collections to scene
Campbell Barton
noreply at git.blender.org
Mon Jul 15 03:02:50 CEST 2019
Commit: 376d609664afd1df56f50ba1139b9efe2991732a
Author: Campbell Barton
Date: Mon Jul 15 10:39:36 2019 +1000
Branches: master
https://developer.blender.org/rBA376d609664afd1df56f50ba1139b9efe2991732a
object_fracture_cell: link collections to scene
Also fixes cursor access.
===================================================================
M object_fracture_cell/__init__.py
===================================================================
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:
More information about the Bf-extensions-cvs
mailing list