diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-03-09 13:43:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-09 13:43:23 +0100 |
commit | b84236944215445be191047ab628e570ffd69e99 (patch) | |
tree | 45ddeda820057e2a9f09576b876a9589cb498e1d | |
parent | 47addcf9d03da717e54158e455d1fc558b4bd66f (diff) | |
parent | 2aae6fc2ec59b1a5ede31efa2d495d948aae5501 (diff) |
Merge pull request #17347 from Ranoller/patch-1
FIX to broken item select list (zoom and RMB)
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index ba68259599..3bb9dca95f 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -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(); |