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.
This commit is contained in:
@@ -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)");
|
||||
|
Reference in New Issue
Block a user