mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 22:23:07 +00:00
Fix Control::_window_find_focus_neighbor
Due to a typo, the size of a candidate neighbor was confused with the size of the control itself. Fixes #34936.
This commit is contained in:
parent
adb6734b49
commit
40542b0b0f
@ -2475,9 +2475,9 @@ void Control::_window_find_focus_neighbour(const Vector2 &p_dir, Node *p_at, con
|
||||
Transform2D xform = c->get_global_transform();
|
||||
|
||||
points[0] = xform.xform(Point2());
|
||||
points[1] = xform.xform(Point2(get_size().x, 0));
|
||||
points[2] = xform.xform(get_size());
|
||||
points[3] = xform.xform(Point2(0, get_size().y));
|
||||
points[1] = xform.xform(Point2(c->get_size().x, 0));
|
||||
points[2] = xform.xform(c->get_size());
|
||||
points[3] = xform.xform(Point2(0, c->get_size().y));
|
||||
|
||||
float min = 1e7;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user