Bugfix: Smooth Modifier didn't accept negative factor values.
Patch by Wahooney. Thanks!
This commit is contained in:
Thomas Dinges
2009-06-04 11:05:36 +00:00
parent 1205579af3
commit 1d6e679f3e

View File

@@ -1144,7 +1144,7 @@ static void rna_def_modifier_smooth(BlenderRNA *brna)
prop= RNA_def_property(srna, "factor", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "fac");
RNA_def_property_range(prop, FLT_MIN, FLT_MAX);
RNA_def_property_range(prop, -FLT_MAX, FLT_MAX);
RNA_def_property_ui_range(prop, -10, 10, 0.5, 2);
RNA_def_property_ui_text(prop, "Factor", "");
RNA_def_property_update(prop, NC_OBJECT|ND_MODIFIER, "rna_Modifier_update");