summaryrefslogtreecommitdiff
path: root/scene/resources/visual_shader.cpp
diff options
context:
space:
mode:
authorYuri Roubinski <chaosus89@gmail.com>2019-08-07 13:48:36 +0300
committerYuri Roubinski <chaosus89@gmail.com>2019-08-07 13:50:41 +0300
commit80080f2655479d9f88e0636b39fec1f3e6f485e2 (patch)
treeb466fb140be92c2764df0d87ec6e9acac46295b9 /scene/resources/visual_shader.cpp
parent765839b2ad9034a7e3905aad081be1eeca2f0fb8 (diff)
Allow comma prefix to visual shader's expression parser
Diffstat (limited to 'scene/resources/visual_shader.cpp')
-rw-r--r--scene/resources/visual_shader.cpp1
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("(");