From 2c0ea75960d284d3b60ac9f301ba49ec8f51b8f9 Mon Sep 17 00:00:00 2001 From: Ryan Schultz Date: Thu, 8 Sep 2022 13:12:47 -0500 Subject: [PATCH] Hiding all objects in the "Types" Collection When all the objects in the "Types" collection are hidden, it makes it quicker to turn on, and isolate one type for viewing and/or toggling other types on to compare to. --- src/blenderbim/blenderbim/bim/module/project/operator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/blenderbim/blenderbim/bim/module/project/operator.py b/src/blenderbim/blenderbim/bim/module/project/operator.py index 0078db5309..9e8685f889 100644 --- a/src/blenderbim/blenderbim/bim/module/project/operator.py +++ b/src/blenderbim/blenderbim/bim/module/project/operator.py @@ -371,7 +371,9 @@ class AppendLibraryElement(bpy.types.Operator): for collection in bpy.context.view_layer.layer_collection.children: if "IfcProject/" in collection.name: 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 ifc_importer = import_ifc.IfcImporter(ifc_import_settings)