From 80080f2655479d9f88e0636b39fec1f3e6f485e2 Mon Sep 17 00:00:00 2001 From: Yuri Roubinski Date: Wed, 7 Aug 2019 13:48:36 +0300 Subject: [PATCH] Allow comma prefix to visual shader's expression parser --- scene/resources/visual_shader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp index 8475a348180..843e33f11e1 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 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("(");