Merge pull request #1086 from lucasrafael98/fixes/missing-include-audio-frame

Fix: Include method_ptrcall.hpp on simple structs.
pull/1047/head
Rémi Verschelde 2023-06-19 10:43:10 +02:00
commit ca78bcf558
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 3 additions and 2 deletions

View File

@ -1189,7 +1189,8 @@ def generate_engine_classes_bindings(api, output_dir, use_template_get_node):
for included in used_classes:
result.append(f"#include <godot_cpp/{get_include_path(included)}>")
if len(used_classes) > 0:
if len(used_classes) == 0:
result.append("#include <godot_cpp/core/method_ptrcall.hpp>")
result.append("")
result.append("namespace godot {")