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:
commit
1a660c6776
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue