[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23958] trunk/blender/source/blender/ makesrna/intern/rna_material.c: Fix #19605: material hardness was wrapped as float while it is an int,

Brecht Van Lommel brecht at blender.org
Mon Oct 19 15:41:02 CEST 2009


Revision: 23958
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23958
Author:   blendix
Date:     2009-10-19 15:41:02 +0200 (Mon, 19 Oct 2009)

Log Message:
-----------
Fix #19605: material hardness was wrapped as float while it is an int,
which made number buttons not increase the value on clicking the arrows.

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

Modified: trunk/blender/source/blender/makesrna/intern/rna_material.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_material.c	2009-10-19 13:24:18 UTC (rev 23957)
+++ trunk/blender/source/blender/makesrna/intern/rna_material.c	2009-10-19 13:41:02 UTC (rev 23958)
@@ -1338,8 +1338,8 @@
 	 * multiple times, which may give somewhat strange changes in the outliner,
 	 * but in the UI they are never visible at the same time. */
 
-	prop= RNA_def_property(srna, "specular_hardness", PROP_FLOAT, PROP_NONE);
-	RNA_def_property_float_sdna(prop, NULL, "har");
+	prop= RNA_def_property(srna, "specular_hardness", PROP_INT, PROP_NONE);
+	RNA_def_property_int_sdna(prop, NULL, "har");
 	RNA_def_property_range(prop, 1, 511);
 	RNA_def_property_ui_text(prop, "Specular Hardness", "");
 	RNA_def_property_update(prop, 0, "rna_Material_update");





More information about the Bf-blender-cvs mailing list