diff options
author | Chaosus89 <chaosus89@gmail.com> | 2019-09-04 16:00:18 +0300 |
---|---|---|
committer | Chaosus89 <chaosus89@gmail.com> | 2019-09-04 16:01:41 +0300 |
commit | 54f0889f205cb3e34e368a1b35657acf2acc37f7 (patch) | |
tree | b1f91e7f59dc2f216649f5690d18780a9a5e52bd /scene/resources | |
parent | 604dc426d57f3a525060b9bb4c37d89c470cff15 (diff) |
Fix parsing array indexing symbol in visual shader expression
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/visual_shader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp index e85609468b..361aaa6745 100644 --- a/scene/resources/visual_shader.cpp +++ b/scene/resources/visual_shader.cpp @@ -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(" "); |