Merge pull request #78556 from QbieShay/qbe/hotzonehotfix

Fix regression in visual nodes hotzones
This commit is contained in:
Rémi Verschelde 2023-06-23 08:47:56 +02:00
commit f24f615b04
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -887,6 +887,7 @@ bool GraphEdit::is_in_port_hotzone(const Vector2 &p_pos, const Vector2 &p_mouse_
continue;
}
Rect2 child_rect = child->get_rect();
child_rect.size *= zoom;
if (child_rect.has_point(p_mouse_pos * zoom)) {
for (int j = 0; j < child->get_child_count(); j++) {