mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
Loading shapes now uses the selected geometry library
This commit is contained in:
@@ -717,9 +717,10 @@ class Loader(bonsai.core.tool.Loader):
|
|||||||
cls, element: ifcopenshell.entity_instance, is_gross: bool = False
|
cls, element: ifcopenshell.entity_instance, is_gross: bool = False
|
||||||
) -> Union[ifcopenshell.geom.ShapeElementType, None]:
|
) -> Union[ifcopenshell.geom.ShapeElementType, None]:
|
||||||
context_settings = cls.settings.gross_context_settings if is_gross else cls.settings.context_settings
|
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:
|
for settings in context_settings:
|
||||||
try:
|
try:
|
||||||
result = ifcopenshell.geom.create_shape(settings, element)
|
result = ifcopenshell.geom.create_shape(settings, element, geometry_library=geometry_library)
|
||||||
if result:
|
if result:
|
||||||
return result
|
return result
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user