From af4fbd6750a259e9f199029da4365b2771405fa2 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 7 May 2025 14:35:40 +0500 Subject: [PATCH] Document features available for perspective camera in it's description See https://i.imgur.com/8ZPJ8ag.png --- src/bonsai/bonsai/bim/module/drawing/prop.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bonsai/bonsai/bim/module/drawing/prop.py b/src/bonsai/bonsai/bim/module/drawing/prop.py index 992c20adde..3a90609431 100644 --- a/src/bonsai/bonsai/bim/module/drawing/prop.py +++ b/src/bonsai/bonsai/bim/module/drawing/prop.py @@ -509,9 +509,9 @@ def update_camera_type(self: "BIMCameraProperties", context: bpy.types.Context) CameraType = Literal["PERSP", "ORTHO"] -CAMERA_TYPE_NAMES: dict[CameraType, str] = { - "PERSP": "Perspective", - "ORTHO": "Ortographic", +CAMERA_TYPE_ENUM_ITEMS: dict[CameraType, tuple[str, str]] = { + "ORTHO": ("Ortographic", "Most common camera for the drawings, supporting all of the features."), + "PERSP": ("Perspective", "The only avilable features for perspective camera: freestyle linework, underlay."), } @@ -582,7 +582,7 @@ class BIMCameraProperties(PropertyGroup): camera_type: EnumProperty( name="Camera Type", default="ORTHO", - items=[(key, name, "") for key, name in CAMERA_TYPE_NAMES.items()], + items=[(k, *v) for k, v in CAMERA_TYPE_ENUM_ITEMS.items()], update=update_camera_type, ) is_nts: BoolProperty(name="Is NTS", update=update_is_nts)