diff options
| author | Ranoller | 2018-03-07 21:39:55 +0100 |
|---|---|---|
| committer | GitHub | 2018-03-07 21:39:55 +0100 |
| commit | 2aae6fc2ec59b1a5ede31efa2d495d948aae5501 (patch) | |
| tree | 46209fbe3708e27d668af36c8083aac95dddd324 /editor/plugins/canvas_item_editor_plugin.cpp | |
| parent | 900384a622c7f3094540a43670421469e4ee0b06 (diff) | |
| download | godot-2aae6fc2ec59b1a5ede31efa2d495d948aae5501.tar.gz godot-2aae6fc2ec59b1a5ede31efa2d495d948aae5501.tar.zst godot-2aae6fc2ec59b1a5ede31efa2d495d948aae5501.zip | |
FIX to broken item select list (zoom and RMB)
FIX to #17346. Compiled and tested.
Diffstat (limited to 'editor/plugins/canvas_item_editor_plugin.cpp')
| -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 ba6825959..3bb9dca95 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(); |
