Merge pull request #67298 from Splizard/fix_unamed_args_gdextension

Fix _unnamed_arg so that arguments defined by GDExtension show up in the editor docs.
This commit is contained in:
Rémi Verschelde 2022-10-12 14:45:00 +02:00
commit 1a660c6776

View file

@ -63,7 +63,9 @@ PropertyInfo MethodBind::get_argument_info(int p_argument) const {
PropertyInfo info = _gen_argument_type_info(p_argument);
#ifdef DEBUG_METHODS_ENABLED
info.name = p_argument < arg_names.size() ? String(arg_names[p_argument]) : String("_unnamed_arg" + itos(p_argument));
if (info.name.is_empty()) {
info.name = p_argument < arg_names.size() ? String(arg_names[p_argument]) : String("_unnamed_arg" + itos(p_argument));
}
#endif
return info;
}