Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-30 07:03:12 +0300
committerCampbell Barton <campbell@blender.org>2022-03-30 07:03:12 +0300
commite74880a659270c91db721e9490a2fe15df837760 (patch)
treef3e7ca07169b6437a6cc87b95c6cfe92f137f4be /source/blender/editors/include/ED_select_utils.h
parent0f33f0de002af1a1c87ddd0fca10a96ae8fa6e15 (diff)
Cleanup: use utility function to initialize SelectPick_Params
Diffstat (limited to 'source/blender/editors/include/ED_select_utils.h')
-rw-r--r--source/blender/editors/include/ED_select_utils.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_select_utils.h b/source/blender/editors/include/ED_select_utils.h
index b9ef5c283aa..dbe1b582132 100644
--- a/source/blender/editors/include/ED_select_utils.h
+++ b/source/blender/editors/include/ED_select_utils.h
@@ -6,11 +6,14 @@
#pragma once
+#include "BLI_compiler_attrs.h"
+
#ifdef __cplusplus
extern "C" {
#endif
struct KDTree_1d;
+struct wmOperator;
enum {
SEL_TOGGLE = 0,
@@ -93,7 +96,15 @@ struct SelectPick_Params {
/**
* Utility to get #eSelectPickMode from booleans for convenience.
*/
-eSelectOp ED_select_op_from_booleans(bool extend, bool deselect, bool toggle);
+eSelectOp ED_select_op_from_operator(struct wmOperator *op)
+ ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT;
+
+/**
+ * Initialize `params` from `op`,
+ * these properties are defined by #WM_operator_properties_mouse_select.
+ */
+void ED_select_pick_params_from_operator(struct wmOperator *op, struct SelectPick_Params *params)
+ ATTR_NONNULL(1, 2);
#ifdef __cplusplus
}