mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +00:00
Merge pull request #2395 from IfcOpenShell/Hiding-all-objects-in-the-"Types"-Collection
Hiding all objects in the "Types" Collection
This commit is contained in:
@@ -371,7 +371,9 @@ 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 = True
|
collection.children["Types"].hide_viewport = False
|
||||||
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user