mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 10:57:49 +00:00
Hide types collection when importing assets. See #1590.
This commit is contained in:
@@ -379,9 +379,10 @@ class AppendLibraryElement(bpy.types.Operator):
|
||||
type_collection = bpy.data.collections.get("Types")
|
||||
if not type_collection:
|
||||
type_collection = bpy.data.collections.new("Types")
|
||||
for collection in bpy.data.collections:
|
||||
for collection in bpy.context.view_layer.layer_collection.children:
|
||||
if "IfcProject/" in collection.name:
|
||||
collection.children.link(type_collection)
|
||||
collection.collection.children.link(type_collection)
|
||||
collection.children["Types"].hide_viewport = True
|
||||
break
|
||||
|
||||
ifc_importer = import_ifc.IfcImporter(ifc_import_settings)
|
||||
|
||||
Reference in New Issue
Block a user