Match corrective-smooth UI to smooth modifier

This commit is contained in:
Campbell Barton 2015-04-01 09:29:56 +11:00
parent c59ca9e477
commit 879f5c832b
2 changed files with 2 additions and 2 deletions

View File

@ -1389,8 +1389,8 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
def CORRECTIVE_SMOOTH(self, layout, ob, md):
is_bind = md.is_bind
layout.prop(md, "factor", text="Factor")
layout.prop(md, "iterations")
layout.prop(md, "lambda_factor", text="Factor")
row = layout.row()
row.prop(md, "smooth_type")

View File

@ -2169,7 +2169,7 @@ static void rna_def_modifier_correctivesmooth(BlenderRNA *brna)
RNA_def_struct_sdna(srna, "CorrectiveSmoothModifierData");
RNA_def_struct_ui_icon(srna, ICON_MOD_SMOOTH);
prop = RNA_def_property(srna, "lambda_factor", PROP_FLOAT, PROP_NONE);
prop = RNA_def_property(srna, "factor", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "lambda");
RNA_def_property_range(prop, -FLT_MAX, FLT_MAX);
RNA_def_property_ui_range(prop, 0.0, 1.0, 5, 3);