[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27103] trunk/blender/source/blender/ makesrna/intern/rna_lamp.c: Nicer step size for lamp energy value

Daniel Salazar zanqdo at gmail.com
Tue Feb 23 13:22:23 CET 2010


Revision: 27103
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27103
Author:   zanqdo
Date:     2010-02-23 13:22:22 +0100 (Tue, 23 Feb 2010)

Log Message:
-----------
Nicer step size for lamp energy value

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

Modified: trunk/blender/source/blender/makesrna/intern/rna_lamp.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_lamp.c	2010-02-23 11:19:55 UTC (rev 27102)
+++ trunk/blender/source/blender/makesrna/intern/rna_lamp.c	2010-02-23 12:22:22 UTC (rev 27103)
@@ -346,12 +346,12 @@
 
 	prop= RNA_def_property(srna, "distance", PROP_FLOAT, PROP_DISTANCE);
 	RNA_def_property_float_sdna(prop, NULL, "dist");
-	RNA_def_property_ui_range(prop, 0, 1000, 1.0, 2);
+	RNA_def_property_ui_range(prop, 0, 1000, 1, 2);
 	RNA_def_property_ui_text(prop, "Distance", "Falloff distance - the light is at half the original intensity at this point");
 	RNA_def_property_update(prop, 0, "rna_Lamp_draw_update");
 
 	prop= RNA_def_property(srna, "energy", PROP_FLOAT, PROP_NONE);
-	RNA_def_property_ui_range(prop, 0, 10.0, 10, 2);
+	RNA_def_property_ui_range(prop, 0, 10, 1, 2);
 	RNA_def_property_ui_text(prop, "Energy", "Amount of light that the lamp emits");
 	RNA_def_property_update(prop, 0, "rna_Lamp_draw_update");
 





More information about the Bf-blender-cvs mailing list