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:
parent
da91575206
commit
d8764ab39d
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue