[Bf-blender-cvs] [ab44c20] blender-v2.77-release: Fix bad UI range of convergence distance which was above the hard limit

Sergey Sharybin noreply at git.blender.org
Fri Mar 18 12:15:17 CET 2016


Commit: ab44c20409dbe9b429ec87868992fa69c213d764
Author: Sergey Sharybin
Date:   Fri Mar 11 21:46:40 2016 +0500
Branches: blender-v2.77-release
https://developer.blender.org/rBab44c20409dbe9b429ec87868992fa69c213d764

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 341cbb7..19bd0f5 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