This commit is contained in:
Andrej730
2025-05-07 11:33:53 +05:00
parent 94cf56e080
commit d539cad1c2
+1 -1
View File
@@ -826,7 +826,7 @@ class Loader(bonsai.core.tool.Loader):
height = ifcopenshell.util.shape.get_y(geometry)
camera_type = "ORTHO"
if "IfcRectangularPyramid" in next(e.is_a() for e in tool.Ifc.get().traverse(representation)):
if any(e.is_a() == "IfcRectangularPyramid" for e in tool.Ifc.get().traverse(representation)):
camera_type = "PERSP"
camera = bpy.data.cameras.new(tool.Loader.get_mesh_name_from_shape(geometry))