[Bf-blender-cvs] [8aa3bac] master: Tweak precision for interocular distance and convergence plane

Sergey Sharybin noreply at git.blender.org
Fri May 6 12:34:34 CEST 2016


Commit: 8aa3bac7afa3b684125975c9f6e51c76fc563f78
Author: Sergey Sharybin
Date:   Fri May 6 12:32:23 2016 +0200
Branches: master
https://developer.blender.org/rB8aa3bac7afa3b684125975c9f6e51c76fc563f78

Tweak precision for interocular distance and convergence plane

Previous number of digits after point was not really useful, especially
for the interocular distance where it's quite common to go sub-cm precision.

===================================================================

M	source/blender/makesrna/intern/rna_camera.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_camera.c b/source/blender/makesrna/intern/rna_camera.c
index d5044ec..fd81f3a 100644
--- a/source/blender/makesrna/intern/rna_camera.c
+++ b/source/blender/makesrna/intern/rna_camera.c
@@ -132,14 +132,14 @@ static void rna_def_camera_stereo_data(BlenderRNA *brna)
 
 	prop = RNA_def_property(srna, "interocular_distance", PROP_FLOAT, PROP_DISTANCE);
 	RNA_def_property_range(prop, 0.0f, 100.0f);
-	RNA_def_property_ui_range(prop, 0.0f, 1.f, 1, 2);
+	RNA_def_property_ui_range(prop, 0.0f, 1.f, 1, 3);
 	RNA_def_property_ui_text(prop, "Interocular Distance",
 	                         "Set the distance between the eyes - the stereo plane distance / 30 should be fine");
 	RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL);
 
 	prop = RNA_def_property(srna, "convergence_distance", PROP_FLOAT, PROP_DISTANCE);
 	RNA_def_property_range(prop, 0.00001f, FLT_MAX);
-	RNA_def_property_ui_range(prop, 0.00001f, 15.f, 1, 2);
+	RNA_def_property_ui_range(prop, 0.00001f, 15.f, 1, 3);
 	RNA_def_property_ui_text(prop, "Convergence Plane Distance",
 	                         "The converge point for the stereo cameras "
 	                         "(often the distance between a projector and the projection screen)");




More information about the Bf-blender-cvs mailing list