From 6dcee054bef7846d6a07f20ca2aa32cba94bab60 Mon Sep 17 00:00:00 2001 From: "Sv. Lockal" Date: Tue, 16 Apr 2013 17:12:04 +0000 Subject: Set min value for sampling value of freestyle line geometry modifier to 0. Negative sampling does not make any sense and leads to crash. --- source/blender/makesrna/intern/rna_linestyle.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender') 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); -- cgit v1.2.3