diff options
author | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2022-03-30 23:18:23 +0200 |
---|---|---|
committer | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2022-03-30 23:18:23 +0200 |
commit | 04728395095835f1d9517f36dd842baa124598f9 (patch) | |
tree | 6754458d8de438683a245d1f3dd68bf25597d48c /scene | |
parent | 5ba3b993d5889f2c9f8a1ebdf6854e5f675fd148 (diff) |
Fix Control::warp_mouse to respect canvas transform
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index f0d4ec54ee..2f96ee675f 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -2939,7 +2939,7 @@ Control::MouseFilter Control::get_mouse_filter() const { void Control::warp_mouse(const Point2 &p_position) { ERR_FAIL_COND(!is_inside_tree()); - get_viewport()->warp_mouse(get_global_transform().xform(p_position)); + get_viewport()->warp_mouse(get_global_transform_with_canvas().xform(p_position)); } bool Control::is_text_field() const { |