mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +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:
|
def is_drawing_active(cls) -> bool:
|
||||||
camera = bpy.context.scene.camera
|
camera = bpy.context.scene.camera
|
||||||
area = tool.Blender.get_view3d_area()
|
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
|
@classmethod
|
||||||
def is_camera_orthographic(cls) -> bool:
|
def is_camera_orthographic(cls) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user