mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix crash in vertex group lock
Resolve discrepancy in the poll/exec functions active-object check. Also use matching object access for the enum callback.
This commit is contained in:
parent
afe57f6598
commit
991d48a9ed
1 changed files with 2 additions and 2 deletions
|
|
@ -736,7 +736,7 @@ const EnumPropertyItem *vgroup_selection_itemf_helper(const bContext *C,
|
|||
return WT_vertex_group_select_item;
|
||||
}
|
||||
|
||||
ob = CTX_data_active_object(C);
|
||||
ob = context_object(C);
|
||||
if (selection_mask & (1 << WT_VGROUP_ACTIVE)) {
|
||||
RNA_enum_items_add_value(&item, &totitem, WT_vertex_group_select_item, WT_VGROUP_ACTIVE);
|
||||
}
|
||||
|
|
@ -3182,7 +3182,7 @@ void OBJECT_OT_vertex_group_normalize_all(wmOperatorType *ot)
|
|||
|
||||
static wmOperatorStatus vertex_group_lock_exec(bContext *C, wmOperator *op)
|
||||
{
|
||||
Object *ob = CTX_data_active_object(C);
|
||||
Object *ob = context_object(C);
|
||||
|
||||
int action = RNA_enum_get(op->ptr, "action");
|
||||
int mask = RNA_enum_get(op->ptr, "mask");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue