New unassign aggregate feature.

This commit is contained in:
Dion Moult
2021-10-06 14:11:54 +11:00
parent 3aa36dd4b7
commit 9508858fcb
11 changed files with 115 additions and 7 deletions
@@ -43,6 +43,8 @@ class Collector(blenderbim.core.tool.Collector):
object_collection.objects.link(obj)
if collection_collection and collection_collection.children.find(object_collection.name) == -1:
if bpy.context.scene.collection.children.find(object_collection.name) != -1:
bpy.context.scene.collection.children.unlink(object_collection)
for collection in bpy.data.collections:
if collection.children.find(object_collection.name) != -1:
collection.children.unlink(object_collection)