From cb0b105402d832ae1fe479ac47cacd683b6da46f Mon Sep 17 00:00:00 2001 From: Lucas Rafael Date: Fri, 7 Apr 2023 12:48:38 +0100 Subject: [PATCH] Fix: Include method_ptrcall.hpp on simple structs. --- binding_generator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/binding_generator.py b/binding_generator.py index 7634942b..d97b57cc 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -1183,8 +1183,9 @@ def generate_engine_classes_bindings(api, output_dir, use_template_get_node): for included in used_classes: result.append(f"#include ") - if len(used_classes) > 0: - result.append("") + if len(used_classes) == 0: + result.append("#include ") + result.append("") result.append("namespace godot {") result.append("")