Browse Source

Merge pull request #78556 from QbieShay/qbe/hotzonehotfix

Fix regression in visual nodes hotzones
Rémi Verschelde 2 năm trước cách đây
mục cha
commit
f24f615b04
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      scene/gui/graph_edit.cpp

+ 1 - 0
scene/gui/graph_edit.cpp

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