[Bf-blender-cvs] [d8764ab] master: 3D View: use proper units for viewport lens length, matching the camera property.
Scott Petrovic
noreply at git.blender.org
Mon Dec 2 15:33:12 CET 2013
Commit: d8764ab39d9aa6d1672a5559e097c9c188806007
Author: Scott Petrovic
Date: Mon Dec 2 15:20:27 2013 +0100
http://developer.blender.org/rBd8764ab39d9aa6d1672a5559e097c9c188806007
3D View: use proper units for viewport lens length, matching the camera property.
Reviewed By: brecht
Differential Revision: http://developer.blender.org/D63
===================================================================
M source/blender/makesrna/intern/rna_space.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 9cc334b..5f7c9fa 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -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);
More information about the Bf-blender-cvs
mailing list