mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix #5320
This commit is contained in:
@@ -1762,7 +1762,12 @@ class Drawing(bonsai.core.tool.Drawing):
|
||||
def is_drawing_active(cls) -> bool:
|
||||
camera = bpy.context.scene.camera
|
||||
area = tool.Blender.get_view3d_area()
|
||||
return (camera is not None) and (camera.type == "CAMERA") and (camera.BIMObjectProperties.ifc_definition_id) and (area is not None)
|
||||
return bool(
|
||||
camera is not None
|
||||
and camera.type == "CAMERA"
|
||||
and camera.BIMObjectProperties.ifc_definition_id
|
||||
and area is not None
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def is_camera_orthographic(cls) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user