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:
Diffstat (limited to 'source/blender/editors/include/ED_select_utils.h')
-rw-r--r--source/blender/editors/include/ED_select_utils.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_select_utils.h b/source/blender/editors/include/ED_select_utils.h
index 26d8d0a3d8c..c24c9168fe8 100644
--- a/source/blender/editors/include/ED_select_utils.h
+++ b/source/blender/editors/include/ED_select_utils.h
@@ -70,6 +70,25 @@ bool ED_select_similar_compare_float_tree(const struct KDTree_1d *tree,
*/
eSelectOp ED_select_op_modal(eSelectOp sel_op, bool is_first);
+/** Argument passed to picking functions. */
+struct SelectPick_Params {
+ /**
+ * - #SEL_OP_ADD named "extend" from operators.
+ * - #SEL_OP_SUB named "deselect" from operators.
+ * - #SEL_OP_XOR named "toggle" from operators.
+ * - #SEL_OP_AND (never used for picking).
+ * - #SEL_OP_SET use when "extend", "deselect" and "toggle" are all disabled.
+ */
+ eSelectOp sel_op;
+ /** Deselect all, even when there is nothing found at the cursor location. */
+ bool deselect_all;
+};
+
+/**
+ * Utility to get #eSelectPickMode from booleans for convenience.
+ */
+eSelectOp ED_select_op_from_booleans(bool extend, bool deselect, bool toggle);
+
#ifdef __cplusplus
}
#endif