diff --git a/binding_generator.py b/binding_generator.py index 6831fdbd..f6d9a2bb 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -1189,8 +1189,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("")