diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-05-08 11:57:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-05-08 11:57:29 +0300 |
commit | fc3cc2ca3a2bfb3b2e63a7e64e0b0a4fa92aad38 (patch) | |
tree | 7f5709aeb60656e2da914ce365137ee056afbc95 /source/blender/editors/sculpt_paint/sculpt_face_set.c | |
parent | 3daf1b151bff9812c673cbf7b9783b1052beb763 (diff) | |
parent | 7f5570ceff7f74621268dba9268c603eccce435f (diff) |
Merge branch 'blender-v2.83-release'
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_face_set.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_face_set.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_face_set.c b/source/blender/editors/sculpt_paint/sculpt_face_set.c index c4d4457b1b2..b3e4bc5630e 100644 --- a/source/blender/editors/sculpt_paint/sculpt_face_set.c +++ b/source/blender/editors/sculpt_paint/sculpt_face_set.c @@ -255,7 +255,7 @@ static EnumPropertyItem prop_sculpt_face_set_create_types[] = { {0, NULL, 0, NULL, NULL}, }; -static int sculpt_face_set_create_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) +static int sculpt_face_set_create_exec(bContext *C, wmOperator *op) { Object *ob = CTX_data_active_object(C); SculptSession *ss = ob->sculpt; @@ -357,7 +357,7 @@ void SCULPT_OT_face_sets_create(wmOperatorType *ot) ot->description = "Create a new Face Set"; /* api callbacks */ - ot->invoke = sculpt_face_set_create_invoke; + ot->exec = sculpt_face_set_create_exec; ot->poll = SCULPT_mode_poll; ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; @@ -597,7 +597,7 @@ static void sculpt_face_sets_init_loop(Object *ob, const int mode) BM_mesh_free(bm); } -static int sculpt_face_set_init_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) +static int sculpt_face_set_init_exec(bContext *C, wmOperator *op) { Object *ob = CTX_data_active_object(C); SculptSession *ss = ob->sculpt; @@ -690,7 +690,7 @@ void SCULPT_OT_face_sets_init(wmOperatorType *ot) ot->description = "Initializes all Face Sets in the mesh"; /* api callbacks */ - ot->invoke = sculpt_face_set_init_invoke; + ot->exec = sculpt_face_set_init_exec; ot->poll = SCULPT_mode_poll; ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; @@ -756,9 +756,7 @@ static EnumPropertyItem prop_sculpt_face_sets_change_visibility_types[] = { {0, NULL, 0, NULL, NULL}, }; -static int sculpt_face_sets_change_visibility_invoke(bContext *C, - wmOperator *op, - const wmEvent *UNUSED(event)) +static int sculpt_face_sets_change_visibility_exec(bContext *C, wmOperator *op) { Object *ob = CTX_data_active_object(C); SculptSession *ss = ob->sculpt; @@ -891,7 +889,7 @@ void SCULPT_OT_face_sets_change_visibility(wmOperatorType *ot) ot->description = "Change the visibility of the Face Sets of the sculpt"; /* Api callbacks. */ - ot->invoke = sculpt_face_sets_change_visibility_invoke; + ot->exec = sculpt_face_sets_change_visibility_exec; ot->poll = SCULPT_mode_poll; ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; @@ -904,9 +902,7 @@ void SCULPT_OT_face_sets_change_visibility(wmOperatorType *ot) ""); } -static int sculpt_face_sets_randomize_colors_invoke(bContext *C, - wmOperator *UNUSED(op), - const wmEvent *UNUSED(event)) +static int sculpt_face_sets_randomize_colors_exec(bContext *C, wmOperator *UNUSED(op)) { Object *ob = CTX_data_active_object(C); @@ -958,7 +954,7 @@ void SCULPT_OT_face_sets_randomize_colors(wmOperatorType *ot) ot->description = "Generates a new set of random colors to render the Face Sets in the viewport"; /* Api callbacks. */ - ot->invoke = sculpt_face_sets_randomize_colors_invoke; + ot->exec = sculpt_face_sets_randomize_colors_exec; ot->poll = SCULPT_mode_poll; ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; |