diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-30 07:03:12 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-30 07:03:12 +0300 |
commit | e74880a659270c91db721e9490a2fe15df837760 (patch) | |
tree | f3e7ca07169b6437a6cc87b95c6cfe92f137f4be /source/blender/editors/uvedit/uvedit_select.c | |
parent | 0f33f0de002af1a1c87ddd0fca10a96ae8fa6e15 (diff) |
Cleanup: use utility function to initialize SelectPick_Params
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_select.c')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_select.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source/blender/editors/uvedit/uvedit_select.c b/source/blender/editors/uvedit/uvedit_select.c index ed4aa6985c4..02685e2efb3 100644 --- a/source/blender/editors/uvedit/uvedit_select.c +++ b/source/blender/editors/uvedit/uvedit_select.c @@ -2622,13 +2622,9 @@ static int uv_select_exec(bContext *C, wmOperator *op) float co[2]; RNA_float_get_array(op->ptr, "location", co); - const struct SelectPick_Params params = { - .sel_op = ED_select_op_from_booleans(RNA_boolean_get(op->ptr, "extend"), - RNA_boolean_get(op->ptr, "deselect"), - RNA_boolean_get(op->ptr, "toggle")), - .deselect_all = RNA_boolean_get(op->ptr, "deselect_all"), - .select_passthrough = RNA_boolean_get(op->ptr, "select_passthrough"), - }; + + struct SelectPick_Params params = {0}; + ED_select_pick_params_from_operator(op, ¶ms); const bool changed = uv_mouse_select(C, co, ¶ms); |