From d9d68550d91453152b76cc94dd3fb1b7ac917eca Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Fri, 25 Mar 2022 14:13:45 +0200 Subject: [PATCH] Fix generating static methods without return value. --- binding_generator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/binding_generator.py b/binding_generator.py index 25d810de..c6ac0195 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 += ", "