3D View: use proper units for viewport lens length, matching the camera property.

Reviewed By: brecht

Differential Revision: http://developer.blender.org/D63
This commit is contained in:
Scott Petrovic 2013-12-02 15:20:27 +01:00 committed by Brecht Van Lommel
parent da91575206
commit d8764ab39d
1 changed files with 2 additions and 2 deletions

View File

@ -1847,9 +1847,9 @@ static void rna_def_space_view3d(BlenderRNA *brna)
RNA_def_property_ui_range(prop, -10000.0, 10000.0, 10, 4);
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);
prop = RNA_def_property(srna, "lens", PROP_FLOAT, PROP_NONE);
prop = RNA_def_property(srna, "lens", PROP_FLOAT, PROP_UNIT_CAMERA);
RNA_def_property_float_sdna(prop, NULL, "lens");
RNA_def_property_ui_text(prop, "Lens", "Viewport lens angle (mm)");
RNA_def_property_ui_text(prop, "Lens", "Viewport lens angle");
RNA_def_property_range(prop, 1.0f, 250.0f);
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);