UI: improve descriptions for camera lens and lens unit

Differential Revision: https://developer.blender.org/D14602
This commit is contained in:
Viktoriia Safiullina 2022-04-08 18:29:30 +02:00 committed by Brecht Van Lommel
parent 811371a6bd
commit a4f970e86b
1 changed files with 2 additions and 2 deletions

View File

@ -481,7 +481,7 @@ void RNA_def_camera(BlenderRNA *brna)
{0, NULL, 0, NULL, NULL},
};
static const EnumPropertyItem prop_lens_unit_items[] = {
{0, "MILLIMETERS", 0, "Millimeters", "Specify the lens in millimeters"},
{0, "MILLIMETERS", 0, "Millimeters", "Specify focal length of the lens in millimeters"},
{CAM_ANGLETOGGLE,
"FOV",
0,
@ -564,7 +564,7 @@ void RNA_def_camera(BlenderRNA *brna)
RNA_def_property_float_sdna(prop, NULL, "lens");
RNA_def_property_range(prop, 1.0f, FLT_MAX);
RNA_def_property_ui_range(prop, 1.0f, 5000.0f, 100, 4);
RNA_def_property_ui_text(prop, "Focal Length", "Perspective Camera lens value in millimeters");
RNA_def_property_ui_text(prop, "Focal Length", "Perspective Camera focal length value in millimeters");
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Camera_update");
prop = RNA_def_property(srna, "sensor_width", PROP_FLOAT, PROP_DISTANCE_CAMERA);