mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 16:46:19 +00:00
Fix #3069. (Again) review all occurrences of users_collection and collection.name
This commit is contained in:
@@ -371,7 +371,8 @@ class AppendLibraryElement(bpy.types.Operator):
|
||||
if not type_collection:
|
||||
type_collection = bpy.data.collections.new("Types")
|
||||
for collection in bpy.context.view_layer.layer_collection.children:
|
||||
if "IfcProject/" in collection.name:
|
||||
collection_obj = collection.BIMCollectionProperties.obj
|
||||
if collection_obj and tool.Ifc.get_entity(collection_obj).is_a("IfcProject"):
|
||||
collection.collection.children.link(type_collection)
|
||||
collection.children["Types"].hide_viewport = True
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user