diff options
| author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-03-25 14:13:45 +0200 |
|---|---|---|
| committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-03-25 14:13:45 +0200 |
| commit | d9d68550d91453152b76cc94dd3fb1b7ac917eca (patch) | |
| tree | 7629308fb60b3abaa201bacc99ddc782b853bd5b | |
| parent | 3d4d004fb69c11528692e07b875a60c4a6328dfc (diff) | |
| download | redot-cpp-d9d68550d91453152b76cc94dd3fb1b7ac917eca.tar.gz | |
Fix generating static methods without return value.
| -rw-r--r-- | binding_generator.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/binding_generator.py b/binding_generator.py index 25d810d..c6ac019 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -1135,7 +1135,10 @@ def generate_engine_class_source(class_api, used_classes, fully_used_classes, us else: method_call += f"return internal::_call_native_mb_ret_obj<{return_type}>(___method_bind, _owner" else: - method_call += f"internal::_call_native_mb_no_ret(___method_bind, _owner" + if method["is_static"]: + method_call += f"internal::_call_native_mb_no_ret(___method_bind, nullptr" + else: + method_call += f"internal::_call_native_mb_no_ret(___method_bind, _owner" if "arguments" in method: method_call += ", " |
