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

Fix GraphEdit port hotzone snapping
This commit is contained in:
Rémi Verschelde 2023-02-12 10:43:25 +01:00 committed by GitHub
commit de31545f64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}