Merge pull request #75366 from Chaosus/shader_compiler_fix_operator

Fix to some operators in shaders are not compiled properly
This commit is contained in:
Yuri Sizov 2023-04-03 22:32:31 +02:00 committed by GitHub
commit 9dcfdc2051
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1357,7 +1357,7 @@ String ShaderCompiler::_dump_node_code(const SL::Node *p_node, int p_level, Gene
if (p_use_scope) { if (p_use_scope) {
code += "("; code += "(";
} }
code += _dump_node_code(onode->arguments[0], p_level, r_gen_code, p_actions, p_default_actions, p_assigning) + _opstr(onode->op) + _dump_node_code(onode->arguments[1], p_level, r_gen_code, p_actions, p_default_actions, p_assigning); code += _dump_node_code(onode->arguments[0], p_level, r_gen_code, p_actions, p_default_actions, p_assigning) + " " + _opstr(onode->op) + " " + _dump_node_code(onode->arguments[1], p_level, r_gen_code, p_actions, p_default_actions, p_assigning);
if (p_use_scope) { if (p_use_scope) {
code += ")"; code += ")";
} }