This commit is contained in:
Manu Varkey
2024-09-05 16:49:19 +05:30
committed by Dion Moult
parent 14fe3e6150
commit a053472558
+1 -1
View File
@@ -1762,7 +1762,7 @@ 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 and camera.type == "CAMERA" and camera.BIMObjectProperties.ifc_definition_id and area
return (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: