Fix parsing array indexing symbol in visual shader expression (#31958)

Fix parsing array indexing symbol in visual shader expression
This commit is contained in:
Yuri Roubinsky 2019-09-04 17:18:06 +03:00 committed by GitHub
commit b25b1fb600
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2466,6 +2466,7 @@ String VisualShaderNodeExpression::generate_code(Shader::Mode p_mode, VisualShad
pre_symbols.push_back(";");
pre_symbols.push_back("{");
pre_symbols.push_back("[");
pre_symbols.push_back("]");
pre_symbols.push_back("(");
pre_symbols.push_back(" ");
pre_symbols.push_back("-");
@ -2485,6 +2486,7 @@ String VisualShaderNodeExpression::generate_code(Shader::Mode p_mode, VisualShad
post_symbols.push_back(",");
post_symbols.push_back(";");
post_symbols.push_back("}");
post_symbols.push_back("[");
post_symbols.push_back("]");
post_symbols.push_back(")");
post_symbols.push_back(" ");