diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-08-12 11:45:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-12 11:45:33 +0200 |
commit | b1de92fbdf0490d86e0cfbe24f8c30463afcc20a (patch) | |
tree | daa97f3a6695fb31849dbe8d21ae68fb458cfbd5 /modules | |
parent | b18747af4b9e7b1fbfb35a478556eba6328ccce5 (diff) | |
parent | bf9a97c2cb6f00e3bc24ce0389999b33a9da5121 (diff) |
Merge pull request #31314 from BastiaanOlij/fix_api_struct_gen
Fix self reference issue in core structures for GDNative plugins
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdnative/gdnative_builders.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnative/gdnative_builders.py b/modules/gdnative/gdnative_builders.py index 7ab0e01108..20c1a2233c 100644 --- a/modules/gdnative/gdnative_builders.py +++ b/modules/gdnative/gdnative_builders.py @@ -185,7 +185,7 @@ def _build_gdnative_api_struct_source(api): 'extern const godot_gdnative_core_' + ('{0}_{1}_api_struct api_{0}_{1}'.format(core['version']['major'], core['version']['minor'])) + ' = {', '\tGDNATIVE_' + core['type'] + ',', '\t{' + str(core['version']['major']) + ', ' + str(core['version']['minor']) + '},', - '\t' + ('NULL' if not core['next'] else ('(const godot_gdnative_api_struct *)& api_{0}_{1}'.format(core['version']['major'], core['version']['minor']))) + ',' + '\t' + ('NULL' if not core['next'] else ('(const godot_gdnative_api_struct *)& api_{0}_{1}'.format(core['next']['version']['major'], core['next']['version']['minor']))) + ',' ] for funcdef in core['api']: |