diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-12 14:45:00 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-12 14:45:00 +0200 |
commit | 1a660c67765c82f44a462b336c220be213613cdc (patch) | |
tree | 08ffe00bafdc4caa9be8811ea9f775bbb7af5263 /core | |
parent | 06dc4648bfd1be51a97a5e10d9ce6b4512e78e76 (diff) | |
parent | 6bc16660cc14d16193d758e906e355a24d4d8353 (diff) |
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.
Diffstat (limited to 'core')
-rw-r--r-- | core/object/method_bind.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/object/method_bind.cpp b/core/object/method_bind.cpp index 0edc7a90c2..5381c596ce 100644 --- a/core/object/method_bind.cpp +++ b/core/object/method_bind.cpp @@ -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; } |