[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28498] trunk/blender/source/blender/ makesrna/intern/rna_object.c: fix for [#22195] Empty Size minimum limit too big (patch by Bassam Kurdali - slikdigit) with small change

Dalai Felinto dfelinto at gmail.com
Wed Apr 28 23:18:40 CEST 2010


Revision: 28498
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28498
Author:   dfelinto
Date:     2010-04-28 23:18:40 +0200 (Wed, 28 Apr 2010)

Log Message:
-----------
fix for [#22195] Empty Size minimum limit too big (patch by Bassam Kurdali - slikdigit) with small change
(ui range precision to 2 instead of 4, since 4 doesn't seem to work here).

>From the tracker:
""" 
The smallest size allowed for empty_draw_size is 0.1. This is un-necessarily limiting and, depending on the scene, much
too large resulting in visual confusion in the 3D View.
Opening old files initially results in small empties, but when you click on them they 'grow' to the new minimum. This
seems to show that previous blender versions didn't have this bug.
Please remove the limitation, or, if needed, make it a much smaller number, so that empties are easier to see and distinguish from one another in small scenes/setups
"""

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

Modified: trunk/blender/source/blender/makesrna/intern/rna_object.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_object.c	2010-04-28 18:15:43 UTC (rev 28497)
+++ trunk/blender/source/blender/makesrna/intern/rna_object.c	2010-04-28 21:18:40 UTC (rev 28498)
@@ -1703,8 +1703,8 @@
 
 	prop= RNA_def_property(srna, "empty_draw_size", PROP_FLOAT, PROP_DISTANCE);
 	RNA_def_property_float_sdna(prop, NULL, "empty_drawsize");
-	RNA_def_property_range(prop, 0.1f, 1000.0f);
-	RNA_def_property_ui_range(prop, 0.01, 100, 1, 1);
+	RNA_def_property_range(prop, 0.0001f, 1000.0f);
+	RNA_def_property_ui_range(prop, 0.01, 100, 1, 2);
 	RNA_def_property_ui_text(prop, "Empty Display Size", "Size of display for empties in the viewport");
 	RNA_def_property_update(prop, NC_OBJECT|ND_DRAW, NULL);
 





More information about the Bf-blender-cvs mailing list