godot/core
Quentin Quaadgras 6bc16660cc Fix _unnamed_arg so that arguments defined by GDExtension show up in docs.
The Godot API (gdnative_interface.h) allows methods to be registered on
extension classes with

`classdb_register_extension_class_method`

a `GDNativeExtensionClassMethodInfo` can be provided to this function
along with a `get_argument_info_func` which according to the comment
indicates that argument names should be definable here.

Unfortunately, setting the name field in the `GDNativePropertyInfo`
struct has no effect on the editor documentation, which continues to
display "_unnamed_arg" for each argument.

I discovered that `get_argument_info` is responsible for this as it
always overrides the `info.name`. I've added an if condition that will
only override the name when it is empty. I've tested this with my
GDExtension module and I can confirm that with this commit, the argument
name shows up in the builtin docs. eg. in Lookup Symbol.
2022-10-12 21:23:34 +13:00
..
config Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4. 2022-10-07 11:32:33 +03:00
crypto Swap arguments of ResourceSaver.save() 2022-07-29 19:53:09 +02:00
debugger Remove NO_THREADS fallback code, Godot 4 requires thread support 2022-10-03 11:23:26 +02:00
error Logger: Don't print error twice on ERR_PRINT 2022-10-04 17:56:30 +02:00
extension Fix extension_api.json Variant types incorrectly displayed as Nil 2022-10-10 13:54:33 +02:00
input Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4. 2022-10-07 11:32:33 +03:00
io Merge pull request #67241 from groud/expose_resource_format_loader_recognize_path 2022-10-11 13:46:24 +02:00
math Add is_finite method for checking built-in types 2022-10-08 13:25:08 +08:00
object Fix _unnamed_arg so that arguments defined by GDExtension show up in docs. 2022-10-12 21:23:34 +13:00
os Merge pull request #66102 from MJacred/feature/getvideoadapterdriverinfo 2022-10-11 13:59:53 +02:00
string Merge pull request #64268 from timothyqiu/is-finite 2022-10-11 09:25:46 +02:00
templates Merge pull request #66804 from akien-mga/core-remove-NO_SAFE_CAST 2022-10-04 10:22:24 +02:00
variant Merge pull request #67224 from Mickeon/jason 2022-10-11 09:27:53 +02:00
core_bind.cpp Merge pull request #67244 from RandomShaper/split_render_further_2 2022-10-11 21:08:42 +02:00
core_bind.h Merge pull request #67244 from RandomShaper/split_render_further_2 2022-10-11 21:08:42 +02:00
core_builders.py ci: add Python static analysis check via mypy 2022-09-30 19:03:17 +07:00
core_constants.cpp Expose PROPERTY_USAGE_READ_ONLY 2022-09-28 22:50:55 +01:00
core_constants.h Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
core_globals.cpp Variant memory pools 2022-07-04 12:01:46 +01:00
core_globals.h Variant memory pools 2022-07-04 12:01:46 +01:00
core_string_names.cpp Cleanup metadata usage 2022-05-06 00:27:10 +02:00
core_string_names.h Cleanup metadata usage 2022-05-06 00:27:10 +02:00
doc_data.cpp Fix missing method qualifiers in script doc 2022-07-24 23:00:19 +02:00
doc_data.h Implement ScriptExtension::get_documentation 2022-10-11 08:22:25 +02:00
register_core_types.cpp Remove unused includes & move some includes to top of file 2022-09-23 19:06:31 -04:00
register_core_types.h Fix extension registration order. 2022-02-20 10:58:46 -03:00
SCsub SCons: Unify tools/target build type configuration 2022-09-26 16:31:46 +02:00
typedefs.h Change some math macros to constexpr 2022-03-09 16:24:32 +01:00
version.h Core: Move generated VERSION_HASH to a .cpp file 2022-02-09 09:20:17 +01:00