diff options
author | Yuri Roubinski <chaosus89@gmail.com> | 2019-08-07 13:48:36 +0300 |
---|---|---|
committer | Yuri Roubinski <chaosus89@gmail.com> | 2019-08-07 13:50:41 +0300 |
commit | 80080f2655479d9f88e0636b39fec1f3e6f485e2 (patch) | |
tree | b466fb140be92c2764df0d87ec6e9acac46295b9 /scene | |
parent | 765839b2ad9034a7e3905aad081be1eeca2f0fb8 (diff) |
Allow comma prefix to visual shader's expression parser
Diffstat (limited to 'scene')
-rw-r--r-- | scene/resources/visual_shader.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp index 8475a34818..843e33f11e 100644 --- a/scene/resources/visual_shader.cpp +++ b/scene/resources/visual_shader.cpp @@ -2260,6 +2260,7 @@ String VisualShaderNodeExpression::generate_code(Shader::Mode p_mode, VisualShad static Vector<String> pre_symbols; if (pre_symbols.empty()) { pre_symbols.push_back("\t"); + pre_symbols.push_back(","); pre_symbols.push_back("{"); pre_symbols.push_back("["); pre_symbols.push_back("("); |