diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp index d8cac0c2024..b3a72ea7b60 100644 --- a/scene/resources/visual_shader.cpp +++ b/scene/resources/visual_shader.cpp @@ -2644,7 +2644,7 @@ String VisualShaderNodeExpression::generate_code(Shader::Mode p_mode, VisualShad code += output_initializer; code += "\t{"; code += _expression; - code += "\n\t}"; + code += "\n\t}\n"; return code; }