[Bf-blender-cvs] [e6efb5c] compositor-2016: Fix T48498: stereo camera interocular distance should not have a hard max limit.

Brecht Van Lommel noreply at git.blender.org
Wed Jun 8 21:50:42 CEST 2016


Commit: e6efb5ce94dc10fb90b0e09dea6b6b3b6b476ee2
Author: Brecht Van Lommel
Date:   Sat May 28 12:21:59 2016 +0200
Branches: compositor-2016
https://developer.blender.org/rBe6efb5ce94dc10fb90b0e09dea6b6b3b6b476ee2

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