summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-08-10 16:31:45 +0200
committerGitHub <noreply@github.com>2022-08-10 16:31:45 +0200
commit345dd9f0fbb6382eb3bac024c01d6b60f3165384 (patch)
tree366c08e57efa49002679641c6d83f43c5ce4f327
parenta94676815190c744b1789922c4a280ed8b355b09 (diff)
parentf265f175e3043d5a92f9dc37f1a13b6c64ad7075 (diff)
Merge pull request #62934 from Xwdit/script_doc_arg_def_var
-rw-r--r--modules/gdscript/gdscript.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp
index dc6bfbb034..8a5e93eeff 100644
--- a/modules/gdscript/gdscript.cpp
+++ b/modules/gdscript/gdscript.cpp
@@ -290,7 +290,9 @@ void GDScript::_get_script_method_list(List<MethodInfo> *r_list, bool p_include_
#endif
mi.arguments.push_back(arginfo);
}
-
+#ifdef TOOLS_ENABLED
+ mi.default_arguments.append_array(func->get_default_arg_values());
+#endif
mi.return_val = func->get_return_type();
r_list->push_back(mi);
}