瀏覽代碼

Merge pull request #73137 from Geometror/graphedit-hotzone-snapping-fix

Fix GraphEdit port hotzone snapping
Rémi Verschelde 2 年之前
父節點
當前提交
de31545f64
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/gui/graph_edit.cpp

+ 1 - 1
scene/gui/graph_edit.cpp

@@ -860,7 +860,7 @@ bool GraphEdit::is_in_port_hotzone(const Vector2 &pos, const Vector2 &p_mouse_po
 	}
 
 	for (int i = 0; i < get_child_count(); i++) {
-		Control *child = Object::cast_to<Control>(get_child(i));
+		GraphNode *child = Object::cast_to<GraphNode>(get_child(i));
 		if (!child) {
 			continue;
 		}