From 6fb4ce202e26afef22eab0aba6a35cfef81f6a6e Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 8 Oct 2024 12:16:56 +1100 Subject: [PATCH] Loading shapes now uses the selected geometry library --- src/bonsai/bonsai/tool/loader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/tool/loader.py b/src/bonsai/bonsai/tool/loader.py index aa56945bd0..b6be210a08 100644 --- a/src/bonsai/bonsai/tool/loader.py +++ b/src/bonsai/bonsai/tool/loader.py @@ -717,9 +717,10 @@ class Loader(bonsai.core.tool.Loader): cls, element: ifcopenshell.entity_instance, is_gross: bool = False ) -> Union[ifcopenshell.geom.ShapeElementType, None]: context_settings = cls.settings.gross_context_settings if is_gross else cls.settings.context_settings + geometry_library = bpy.context.scene.BIMProjectProperties.geometry_library for settings in context_settings: try: - result = ifcopenshell.geom.create_shape(settings, element) + result = ifcopenshell.geom.create_shape(settings, element, geometry_library=geometry_library) if result: return result except: