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>2019-11-24 14:04:50 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-11-24 14:05:59 +0300
commit9af0cdcd9349b6c0fd1cc0e57a58254e21e1bd3b (patch)
tree4ef6c4b670a7b45dbeb587c1ebf941178c88e67c
parentaa6fcabad109031bbeb376b35591f533d3676e6e (diff)
Cleanup: remove unused text.selection_set select option
This was meant to set the selection end instead of the cursor however it hasn't been working for years and seems quite obscure.
-rw-r--r--release/scripts/presets/keyconfig/keymap_data/blender_default.py2
-rw-r--r--release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py2
-rw-r--r--source/blender/editors/space_text/text_ops.c4
3 files changed, 0 insertions, 8 deletions
diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
index cc4e3e269ed..3a7a142e310 100644
--- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py
+++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
@@ -2293,8 +2293,6 @@ def km_text(params):
("text.scroll", {"type": 'TRACKPADPAN', "value": 'ANY'}, None),
("text.selection_set", {"type": 'EVT_TWEAK_L', "value": 'ANY'}, None),
("text.cursor_set", {"type": 'LEFTMOUSE', "value": 'PRESS'}, None),
- ("text.selection_set", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True},
- {"properties": [("select", True)]}),
("text.scroll", {"type": 'WHEELUPMOUSE', "value": 'PRESS'},
{"properties": [("lines", -1)]}),
("text.scroll", {"type": 'WHEELDOWNMOUSE', "value": 'PRESS'},
diff --git a/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py b/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py
index 7d8ada2d117..dc62b6bba68 100644
--- a/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py
+++ b/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py
@@ -1655,8 +1655,6 @@ def km_text(params):
("text.scroll", {"type": 'TRACKPADPAN', "value": 'ANY'}, None),
("text.selection_set", {"type": 'EVT_TWEAK_L', "value": 'ANY'}, None),
("text.cursor_set", {"type": 'LEFTMOUSE', "value": 'PRESS'}, None),
- ("text.selection_set", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True},
- {"properties": [("select", True)]}),
("text.scroll", {"type": 'WHEELUPMOUSE', "value": 'PRESS'},
{"properties": [("lines", -1)]}),
("text.scroll", {"type": 'WHEELDOWNMOUSE', "value": 'PRESS'},
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c
index 8a57b578500..842570459be 100644
--- a/source/blender/editors/space_text/text_ops.c
+++ b/source/blender/editors/space_text/text_ops.c
@@ -3234,7 +3234,6 @@ static int text_selection_set_invoke(bContext *C, wmOperator *op, const wmEvent
op->customdata = MEM_callocN(sizeof(SetSelection), "SetCursor");
ssel = op->customdata;
- ssel->selecting = RNA_boolean_get(op->ptr, "select");
ssel->mval_prev[0] = event->mval[0];
ssel->mval_prev[1] = event->mval[1];
@@ -3283,9 +3282,6 @@ void TEXT_OT_selection_set(wmOperatorType *ot)
ot->modal = text_selection_set_modal;
ot->cancel = text_selection_set_cancel;
ot->poll = text_region_edit_poll;
-
- /* properties */
- RNA_def_boolean(ot->srna, "select", 0, "Select", "Set selection end rather than cursor");
}
/** \} */