Rich Text Label: fixed deselection issue

This commit is contained in:
Dmitry Koteroff 2017-12-04 18:46:20 +03:00
parent 1a317a39ed
commit 0a1a5396ec
1 changed files with 11 additions and 0 deletions

View File

@ -793,6 +793,17 @@ void RichTextLabel::_gui_input(Ref<InputEvent> p_event) {
selection.click = item;
selection.click_char = line;
// Erase previous selection.
if (selection.active) {
selection.from = NULL;
selection.from_char = NULL;
selection.to = NULL;
selection.to_char = NULL;
selection.active = false;
update();
}
}
}