[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54719] trunk/blender/source/blender/ makesrna/intern/rna_camera.c: Remove orthographic camera Scale hard min/ max and make them soft limits instead,

Brecht Van Lommel brechtvanlommel at pandora.be
Thu Feb 21 19:08:01 CET 2013


Revision: 54719
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54719
Author:   blendix
Date:     2013-02-21 18:08:01 +0000 (Thu, 21 Feb 2013)
Log Message:
-----------
Remove orthographic camera Scale hard min/max and make them soft limits instead,
based on patch by Alexander Trum.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_camera.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_camera.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_camera.c	2013-02-21 18:07:59 UTC (rev 54718)
+++ trunk/blender/source/blender/makesrna/intern/rna_camera.c	2013-02-21 18:08:01 UTC (rev 54719)
@@ -208,7 +208,8 @@
 
 	prop = RNA_def_property(srna, "ortho_scale", PROP_FLOAT, PROP_NONE);
 	RNA_def_property_float_sdna(prop, NULL, "ortho_scale");
-	RNA_def_property_range(prop, 0.01f, 4000.0f);
+	RNA_def_property_range(prop, FLT_MIN, FLT_MAX);
+	RNA_def_property_ui_range(prop, 0.001f, 10000.0f, 10, 3);
 	RNA_def_property_ui_text(prop, "Orthographic Scale", "Orthographic Camera scale (similar to zoom)");
 	RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Camera_update");
 




More information about the Bf-blender-cvs mailing list