Fix: Include method_ptrcall.hpp on simple structs.
parent
feaba551b5
commit
cb0b105402
|
@ -1183,7 +1183,8 @@ def generate_engine_classes_bindings(api, output_dir, use_template_get_node):
|
||||||
for included in used_classes:
|
for included in used_classes:
|
||||||
result.append(f"#include <godot_cpp/{get_include_path(included)}>")
|
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("")
|
||||||
|
|
||||||
result.append("namespace godot {")
|
result.append("namespace godot {")
|
||||||
|
|
Loading…
Reference in New Issue