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 <ideasman42@gmail.com>2018-11-23 09:52:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-11-23 09:52:52 +0300
commita6eb9a3e21894fad2605cf1e4ae228147be71857 (patch)
tree7509d90c2ae1207738bce87d933aca7ccb775631 /source/blender/windowmanager/intern/wm_operator_props.c
parentdcf359b15a0bbc62af756182fa9c529c25c3ceb2 (diff)
Tool System: uv lasso/box select options
These tools now support (new, add, subtract), (xor, and) could be supported but are complicated by UV's sticky selection modes.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_operator_props.c')
-rw-r--r--source/blender/windowmanager/intern/wm_operator_props.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_operator_props.c b/source/blender/windowmanager/intern/wm_operator_props.c
index f8fa652ed63..11aef46096a 100644
--- a/source/blender/windowmanager/intern/wm_operator_props.c
+++ b/source/blender/windowmanager/intern/wm_operator_props.c
@@ -279,6 +279,19 @@ void WM_operator_properties_select_operation(wmOperatorType *ot)
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
}
+/* Some tools don't support XOR/END */
+void WM_operator_properties_select_operation_simple(wmOperatorType *ot)
+{
+ static const EnumPropertyItem select_mode_items[] = {
+ {SEL_OP_SET, "SET", 0, "New", ""},
+ {SEL_OP_ADD, "ADD", 0, "Add", ""},
+ {SEL_OP_SUB, "SUB", 0, "Subtract", ""},
+ {0, NULL, 0, NULL, NULL}
+ };
+ PropertyRNA *prop = RNA_def_enum(ot->srna, "mode", select_mode_items, SEL_OP_SET, "Mode", "");
+ RNA_def_property_flag(prop, PROP_SKIP_SAVE);
+}
+
void WM_operator_properties_gesture_box_zoom(wmOperatorType *ot)
{
WM_operator_properties_border(ot);