diff --git a/src/headers/transpiler/implementations/GodotScript.hpp b/src/headers/transpiler/implementations/GodotScript.hpp index 2ffab10..842aeff 100644 --- a/src/headers/transpiler/implementations/GodotScript.hpp +++ b/src/headers/transpiler/implementations/GodotScript.hpp @@ -33,6 +33,7 @@ struct GsTarget: Target { } else output << "else"; output << ':' << separator << indentation; separate_transpileTree(parseComponent, 1); + if (parseComponent.empty()) output << "pass"; ) }; } diff --git a/src/headers/transpiler/implementations/Py.hpp b/src/headers/transpiler/implementations/Py.hpp index f9ed112..b55250c 100644 --- a/src/headers/transpiler/implementations/Py.hpp +++ b/src/headers/transpiler/implementations/Py.hpp @@ -31,6 +31,7 @@ struct PyTarget: Target { } else output << "else"; output << ':' << separator << indentation; separate_transpileTree(parseComponent, 1); + if (parseComponent.empty()) output << "pass"; ), make_task(StandardComponents::Reference, if (parseComponent.name == "true" or parseComponent.name == "false") {