Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_vgroup.c
| Show First 20 Lines • Show All 3,173 Lines • ▼ Show 20 Lines | |||||
| static int vertex_group_lock_exec(bContext *C, wmOperator *op) | static int vertex_group_lock_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| Object *ob = CTX_data_active_object(C); | Object *ob = CTX_data_active_object(C); | ||||
| int action = RNA_enum_get(op->ptr, "action"); | int action = RNA_enum_get(op->ptr, "action"); | ||||
| vgroup_lock_all(ob, action); | vgroup_lock_all(ob, action); | ||||
| WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob); | |||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| void OBJECT_OT_vertex_group_lock(wmOperatorType *ot) | void OBJECT_OT_vertex_group_lock(wmOperatorType *ot) | ||||
| { | { | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "Change the Lock On Vertex Groups"; | ot->name = "Change the Lock On Vertex Groups"; | ||||
| ot->idname = "OBJECT_OT_vertex_group_lock"; | ot->idname = "OBJECT_OT_vertex_group_lock"; | ||||
| ▲ Show 20 Lines • Show All 1,022 Lines • Show Last 20 Lines | |||||