Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-10-19 17:41:02 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-10-19 17:41:02 +0400
commit51f11abe45097cbba59626ede06c3832bcc522e2 (patch)
tree1cb9bf078b402e572c8b8ef293b3d8bd5878b20b /source
parentc3f18a2d7364140097d4dd3edc608d5161afdf27 (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_material.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_material.c b/source/blender/makesrna/intern/rna_material.c
index 3ddbb937b5b..d0aa4e4439c 100644
--- a/source/blender/makesrna/intern/rna_material.c
+++ b/source/blender/makesrna/intern/rna_material.c
@@ -1338,8 +1338,8 @@ static void rna_def_material_specularity(StructRNA *srna)
* 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");