Fix T55461: [Vertex Group] "Delete all unlocked groups" not working.

This commit is contained in:
Bastien Montagne 2019-01-21 10:35:55 +01:00
parent 78d2abd9c1
commit 42ba294235
Notes: blender-bot 2023-02-14 08:45:09 +01:00
Referenced by issue #55461, [Vertex Group] "Delete all unlocked groups" not working
1 changed files with 4 additions and 2 deletions

View File

@ -2683,8 +2683,10 @@ void OBJECT_OT_vertex_group_remove(wmOperatorType *ot)
ot->flag = /*OPTYPE_REGISTER|*/ OPTYPE_UNDO;
/* properties */
RNA_def_boolean(ot->srna, "all", 0, "All", "Remove all vertex groups");
RNA_def_boolean(ot->srna, "all_unlocked", 0, "All Unlocked", "Remove all unlocked vertex groups");
PropertyRNA *prop = RNA_def_boolean(ot->srna, "all", 0, "All", "Remove all vertex groups");
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
prop = RNA_def_boolean(ot->srna, "all_unlocked", 0, "All Unlocked", "Remove all unlocked vertex groups");
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
}
static int vertex_group_assign_exec(bContext *C, wmOperator *UNUSED(op))