summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-06-23 08:47:56 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-06-23 08:47:56 +0200
commitf24f615b0458b6549d2d4488e4d1be2e495856ff (patch)
tree24158e6df32d82be9606e03ad5ba27edad50d8e9
parent1d41ce76ca605b4f307043f2dee8f5baa85e5c8a (diff)
parent237e3c6099223e3040ba10259f555e8f44c660c5 (diff)
downloadredot-engine-f24f615b0458b6549d2d4488e4d1be2e495856ff.tar.gz
Merge pull request #78556 from QbieShay/qbe/hotzonehotfix
Fix regression in visual nodes hotzones
-rw-r--r--scene/gui/graph_edit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp
index 5a004c122f..e6f936059b 100644
--- a/scene/gui/graph_edit.cpp
+++ b/scene/gui/graph_edit.cpp
@@ -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++) {