UI: Clarify Laplacian Deform

- Match UI Style
- Clarify that the vertex group is different then other modifiers
This commit is contained in:
Aaron Carlisle 2020-02-26 17:33:17 -05:00
parent 1d302df4f8
commit 1a1f2912e6
2 changed files with 3 additions and 7 deletions

View File

@ -494,13 +494,9 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
layout.prop(md, "iterations")
row = layout.row()
row.active = not is_bind
row.label(text="Anchors Vertex Group:")
row = layout.row()
row = layout.row(align=True)
row.enabled = not is_bind
row.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
row.prop_search(md, "vertex_group", ob, "vertex_groups")
row.prop(md, "invert_vertex_group", text="", icon='ARROW_LEFTRIGHT')
layout.separator()

View File

@ -5635,7 +5635,7 @@ static void rna_def_modifier_laplaciandeform(BlenderRNA *brna)
prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE);
RNA_def_property_string_sdna(prop, NULL, "anchor_grp_name");
RNA_def_property_ui_text(
prop, "Vertex Group for Anchors", "Name of Vertex Group which determines Anchors");
prop, "Anchor Weights", "Name of Vertex Group which determines Anchors");
RNA_def_property_string_funcs(
prop, NULL, NULL, "rna_LaplacianDeformModifier_anchor_grp_name_set");