diff options
author | Sv. Lockal <lockalsash@gmail.com> | 2013-04-16 21:12:04 +0400 |
---|---|---|
committer | Sv. Lockal <lockalsash@gmail.com> | 2013-04-16 21:12:04 +0400 |
commit | 6dcee054bef7846d6a07f20ca2aa32cba94bab60 (patch) | |
tree | 31ee29117db4ade5880f4f3b4aabef0be414f50e /source/blender/makesrna/intern/rna_linestyle.c | |
parent | 858c7acd5bfda4039e12f8a2e41617c818efafb3 (diff) |
Set min value for sampling value of freestyle line geometry modifier to 0.
Negative sampling does not make any sense and leads to crash.
Diffstat (limited to 'source/blender/makesrna/intern/rna_linestyle.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_linestyle.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_linestyle.c b/source/blender/makesrna/intern/rna_linestyle.c index 59738fd0fa7..8c83c89bb5f 100644 --- a/source/blender/makesrna/intern/rna_linestyle.c +++ b/source/blender/makesrna/intern/rna_linestyle.c @@ -597,6 +597,7 @@ static void rna_def_linestyle_modifiers(BlenderRNA *brna) prop = RNA_def_property(srna, "sampling", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "sampling"); + RNA_def_property_range(prop, 0.0f, 10000.0f); RNA_def_property_ui_text(prop, "Sampling", "New sampling value to be used for subsequent modifiers"); RNA_def_property_update(prop, NC_LINESTYLE, NULL); |