This commit is contained in:
Andrej730
2024-09-23 12:22:00 +05:00
parent df055cefd4
commit c33e2fc689
+6 -1
View File
@@ -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: