Revert "Hiding all objects in the "Types" Collection "

This reverts commit 2c0ea75960.
This commit is contained in:
Dion Moult
2022-09-09 10:59:10 +10:00
parent 48f8c0e085
commit e4c1f7518d
@@ -371,9 +371,7 @@ class AppendLibraryElement(bpy.types.Operator):
for collection in bpy.context.view_layer.layer_collection.children: for collection in bpy.context.view_layer.layer_collection.children:
if "IfcProject/" in collection.name: if "IfcProject/" in collection.name:
collection.collection.children.link(type_collection) collection.collection.children.link(type_collection)
collection.children["Types"].hide_viewport = False collection.children["Types"].hide_viewport = True
for obj in bpy.data.collections.get("Types").objects:
obj.hide_set(True)
break break
ifc_importer = import_ifc.IfcImporter(ifc_import_settings) ifc_importer = import_ifc.IfcImporter(ifc_import_settings)