summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-12 14:45:00 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-12 14:45:00 +0200
commit1a660c67765c82f44a462b336c220be213613cdc (patch)
tree08ffe00bafdc4caa9be8811ea9f775bbb7af5263 /core
parent06dc4648bfd1be51a97a5e10d9ce6b4512e78e76 (diff)
parent6bc16660cc14d16193d758e906e355a24d4d8353 (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.cpp4
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;
}