FIX to broken item select list (zoom and RMB)

FIX to #17346. Compiled and tested.
This commit is contained in:
Ranoller 2018-03-07 21:39:55 +01:00 committed by GitHub
parent 900384a622
commit 2aae6fc2ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1615,10 +1615,10 @@ bool CanvasItemEditor::_gui_input_select(const Ref<InputEvent> &p_event) {
if (drag_type == DRAG_NONE) {
if (b.is_valid() &&
((b->get_button_index() == BUTTON_LEFT && b->get_alt() && tool == TOOL_SELECT) ||
((b->get_button_index() == BUTTON_RIGHT && b->get_alt() && tool == TOOL_SELECT) ||
(b->get_button_index() == BUTTON_LEFT && tool == TOOL_LIST_SELECT))) {
// Popup the selection menu list
Point2 click = transform.xform(b->get_position());
Point2 click = transform.affine_inverse().xform(b->get_position());
Node *scene = editor->get_edited_scene();