Cleanup: Sculpt: Use consistent operator function names

Make function names consistent with operator idname
This commit is contained in:
Hans Goudey 2023-08-01 21:37:57 -04:00
parent 29a338811c
commit c3685fe068
3 changed files with 10 additions and 10 deletions

@ -781,7 +781,7 @@ static EnumPropertyItem prop_sculpt_face_sets_change_visibility_types[] = {
{0, nullptr, 0, nullptr, nullptr}, {0, nullptr, 0, nullptr, nullptr},
}; };
static int sculpt_face_sets_change_visibility_exec(bContext *C, wmOperator *op) static int sculpt_face_set_change_visibility_exec(bContext *C, wmOperator *op)
{ {
Object *ob = CTX_data_active_object(C); Object *ob = CTX_data_active_object(C);
SculptSession *ss = ob->sculpt; SculptSession *ss = ob->sculpt;
@ -906,9 +906,9 @@ static int sculpt_face_sets_change_visibility_exec(bContext *C, wmOperator *op)
return OPERATOR_FINISHED; return OPERATOR_FINISHED;
} }
static int sculpt_face_sets_change_visibility_invoke(bContext *C, static int sculpt_face_set_change_visibility_invoke(bContext *C,
wmOperator *op, wmOperator *op,
const wmEvent *event) const wmEvent *event)
{ {
Object *ob = CTX_data_active_object(C); Object *ob = CTX_data_active_object(C);
SculptSession *ss = ob->sculpt; SculptSession *ss = ob->sculpt;
@ -920,10 +920,10 @@ static int sculpt_face_sets_change_visibility_invoke(bContext *C,
SCULPT_vertex_random_access_ensure(ss); SCULPT_vertex_random_access_ensure(ss);
SCULPT_cursor_geometry_info_update(C, &sgi, mval_fl, false); SCULPT_cursor_geometry_info_update(C, &sgi, mval_fl, false);
return sculpt_face_sets_change_visibility_exec(C, op); return sculpt_face_set_change_visibility_exec(C, op);
} }
void SCULPT_OT_face_sets_change_visibility(wmOperatorType *ot) void SCULPT_OT_face_set_change_visibility(wmOperatorType *ot)
{ {
/* Identifiers. */ /* Identifiers. */
ot->name = "Face Sets Visibility"; ot->name = "Face Sets Visibility";
@ -931,8 +931,8 @@ void SCULPT_OT_face_sets_change_visibility(wmOperatorType *ot)
ot->description = "Change the visibility of the Face Sets of the sculpt"; ot->description = "Change the visibility of the Face Sets of the sculpt";
/* Api callbacks. */ /* Api callbacks. */
ot->exec = sculpt_face_sets_change_visibility_exec; ot->exec = sculpt_face_set_change_visibility_exec;
ot->invoke = sculpt_face_sets_change_visibility_invoke; ot->invoke = sculpt_face_set_change_visibility_invoke;
ot->poll = SCULPT_mode_poll; ot->poll = SCULPT_mode_poll;
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_DEPENDS_ON_CURSOR; ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_DEPENDS_ON_CURSOR;

@ -1676,7 +1676,7 @@ void SCULPT_OT_project_line_gesture(wmOperatorType *ot);
* \{ */ * \{ */
void SCULPT_OT_face_sets_randomize_colors(wmOperatorType *ot); void SCULPT_OT_face_sets_randomize_colors(wmOperatorType *ot);
void SCULPT_OT_face_sets_change_visibility(wmOperatorType *ot); void SCULPT_OT_face_set_change_visibility(wmOperatorType *ot);
void SCULPT_OT_face_sets_invert_visibility(wmOperatorType *ot); void SCULPT_OT_face_sets_invert_visibility(wmOperatorType *ot);
void SCULPT_OT_face_sets_init(wmOperatorType *ot); void SCULPT_OT_face_sets_init(wmOperatorType *ot);
void SCULPT_OT_face_sets_create(wmOperatorType *ot); void SCULPT_OT_face_sets_create(wmOperatorType *ot);

@ -1396,7 +1396,7 @@ void ED_operatortypes_sculpt()
WM_operatortype_append(SCULPT_OT_mask_expand); WM_operatortype_append(SCULPT_OT_mask_expand);
WM_operatortype_append(SCULPT_OT_set_pivot_position); WM_operatortype_append(SCULPT_OT_set_pivot_position);
WM_operatortype_append(SCULPT_OT_face_sets_create); WM_operatortype_append(SCULPT_OT_face_sets_create);
WM_operatortype_append(SCULPT_OT_face_sets_change_visibility); WM_operatortype_append(SCULPT_OT_face_set_change_visibility);
WM_operatortype_append(SCULPT_OT_face_sets_invert_visibility); WM_operatortype_append(SCULPT_OT_face_sets_invert_visibility);
WM_operatortype_append(SCULPT_OT_face_sets_randomize_colors); WM_operatortype_append(SCULPT_OT_face_sets_randomize_colors);
WM_operatortype_append(SCULPT_OT_face_sets_init); WM_operatortype_append(SCULPT_OT_face_sets_init);