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/util/select_utils.c')
-rw-r--r--source/blender/editors/util/select_utils.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/editors/util/select_utils.c b/source/blender/editors/util/select_utils.c
index b6893c3032a..380c7ed0e43 100644
--- a/source/blender/editors/util/select_utils.c
+++ b/source/blender/editors/util/select_utils.c
@@ -112,3 +112,17 @@ bool ED_select_similar_compare_float_tree(const KDTree_1d *tree,
return false;
}
+
+eSelectOp ED_select_op_from_booleans(const bool extend, const bool deselect, const bool toggle)
+{
+ if (extend) {
+ return SEL_OP_ADD;
+ }
+ if (deselect) {
+ return SEL_OP_SUB;
+ }
+ if (toggle) {
+ return SEL_OP_XOR;
+ }
+ return SEL_OP_SET;
+}