summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2019-08-07 14:01:54 +0300
committerGitHub <noreply@github.com>2019-08-07 14:01:54 +0300
commit46efc9a70e8089ba3b41a4acc248844ff66f1e9b (patch)
treee4e4eb9419182cf94fb69e6ca40f71a8ab5749b1 /scene
parenta909efeb120afcb41f2c67720e7638ece0a6d6ff (diff)
parent80080f2655479d9f88e0636b39fec1f3e6f485e2 (diff)
Allow comma prefix in visual shader's expression parser (#31176)
Allow comma prefix in visual shader's expression parser
Diffstat (limited to 'scene')
-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("(");