diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp index 4161f743a56..d8cac0c2024 100644 --- a/scene/resources/visual_shader.cpp +++ b/scene/resources/visual_shader.cpp @@ -246,6 +246,7 @@ String VisualShaderNodeCustom::generate_code(Shader::Mode p_mode, VisualShader:: code.remove(code.size() - 1); code += "}"; } + code += "\n"; return code; }