[Bf-blender-cvs] [7d82de9] master: Fix bad UI range of convergence distance which was above the hard limit

Sergey Sharybin noreply at git.blender.org
Sat Mar 12 11:15:55 CET 2016


Commit: 7d82de9e849e66e0e3f85445beb61fae1eecbcce
Author: Sergey Sharybin
Date:   Fri Mar 11 21:46:40 2016 +0500
Branches: master
https://developer.blender.org/rB7d82de9e849e66e0e3f85445beb61fae1eecbcce

Fix bad UI range of convergence distance which was above the hard limit

That was rather confusing to slide the value.

Perhaps makesrna can check cases like this?

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

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 e3f2762..d5044ec 100644
--- a/source/blender/makesrna/intern/rna_camera.c
+++ b/source/blender/makesrna/intern/rna_camera.c
@@ -139,7 +139,7 @@ static void rna_def_camera_stereo_data(BlenderRNA *brna)
 
 	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.0f, 15.f, 1, 2);
+	RNA_def_property_ui_range(prop, 0.00001f, 15.f, 1, 2);
 	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