From bffedfed1eb297b697fa4d139ac9d03b5c9fabd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 8 Jul 2022 15:30:23 +0200 Subject: [PATCH] Fix typo in static method binding generator Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com> --- binding_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding_generator.py b/binding_generator.py index 450624b3..a1ae9f65 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -1152,7 +1152,7 @@ def generate_engine_class_source(class_api, used_classes, fully_used_classes, us method_call += f"return internal::_call_native_mb_ret<{get_gdnative_type(correct_type(return_type, meta_type))}>(___method_bind, _owner" elif is_refcounted(return_type): if method["is_static"]: - method_call += f"return Ref<{return_type}>::___internal_constructor(internal::_call_native_mb_ret_obj<{return_type}>(___method_bind, _nullptr" + method_call += f"return Ref<{return_type}>::___internal_constructor(internal::_call_native_mb_ret_obj<{return_type}>(___method_bind, nullptr" else: method_call += f"return Ref<{return_type}>::___internal_constructor(internal::_call_native_mb_ret_obj<{return_type}>(___method_bind, _owner" is_ref = True