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
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-01-21 15:07:15 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-01-21 15:07:15 +0300
commite9b0956b55bfdb6476f3805045d1686fdeaa0c57 (patch)
tree0b257a80e580ca9bff81cb542fd953b29dbf0162
parentba8269c5f6d689defc05e46d6d981f7f0945b6a1 (diff)
Adjust material strand size ui range to show some more precision,
these values need to be very small for blender units.
-rw-r--r--source/blender/makesrna/intern/rna_material.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_material.c b/source/blender/makesrna/intern/rna_material.c
index b69e5130c0f..f4ffe7e007d 100644
--- a/source/blender/makesrna/intern/rna_material.c
+++ b/source/blender/makesrna/intern/rna_material.c
@@ -1394,11 +1394,13 @@ static void rna_def_material_strand(BlenderRNA *brna)
prop= RNA_def_property(srna, "root_size", PROP_FLOAT, PROP_UNSIGNED);
RNA_def_property_float_sdna(prop, NULL, "strand_sta");
RNA_def_property_float_funcs(prop, NULL, NULL, "rna_MaterialStrand_start_size_range");
+ RNA_def_property_ui_range(prop, 0, 10.0f, 10, 5);
RNA_def_property_ui_text(prop, "Root Size", "Start size of strands in pixels or Blender units.");
RNA_def_property_update(prop, 0, "rna_Material_update");
prop= RNA_def_property(srna, "tip_size", PROP_FLOAT, PROP_UNSIGNED);
RNA_def_property_float_sdna(prop, NULL, "strand_end");
+ RNA_def_property_ui_range(prop, 0, 10.0f, 10, 5);
RNA_def_property_float_funcs(prop, NULL, NULL, "rna_MaterialStrand_end_size_range");
RNA_def_property_ui_text(prop, "Tip Size", "End size of strands in pixels or Blender units.");
RNA_def_property_update(prop, 0, "rna_Material_update");