[Bf-blender-cvs] [4ae5071] master: Fix T48498: stereo camera interocular distance should not have a hard max limit.

Brecht Van Lommel noreply at git.blender.org
Sat May 28 12:26:24 CEST 2016


Commit: 4ae507180e28439c51ffdca097ed5945a97ab1c1
Author: Brecht Van Lommel
Date:   Sat May 28 12:21:59 2016 +0200
Branches: master
https://developer.blender.org/rB4ae507180e28439c51ffdca097ed5945a97ab1c1

Fix T48498: stereo camera interocular distance should not have a hard max limit.

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

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 dcb4d65..2273cba 100644
--- a/source/blender/makesrna/intern/rna_camera.c
+++ b/source/blender/makesrna/intern/rna_camera.c
@@ -131,8 +131,8 @@ static void rna_def_camera_stereo_data(BlenderRNA *brna)
 	RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL);
 
 	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, 3);
+	RNA_def_property_range(prop, 0.0f, FLT_MAX);
+	RNA_def_property_ui_range(prop, 0.0f, 100.0f, 10, 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);




More information about the Bf-blender-cvs mailing list