diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index 1145a10f710..cede2c0ab66 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -294,6 +294,13 @@ List ConnectDialog::_filter_method_list(const List &p_me } for (const MethodInfo &mi : p_methods) { + if (mi.name.begins_with("@")) { + // GH-92782. GDScript inline setters/getters are historically present in `get_method_list()` + // and can be called using `Object.call()`. However, these functions are meant to be internal + // and their names are not valid identifiers, so let's hide them from the user. + continue; + } + if (!p_search_string.is_empty() && !mi.name.containsn(p_search_string)) { continue; } @@ -324,8 +331,10 @@ List ConnectDialog::_filter_method_list(const List &p_me continue; } } + ret.push_back(mi); } + return ret; } diff --git a/editor/property_selector.cpp b/editor/property_selector.cpp index d123d8ef596..a5157bd394b 100644 --- a/editor/property_selector.cpp +++ b/editor/property_selector.cpp @@ -225,11 +225,24 @@ void PropertySelector::_update_search() { } else { Ref