Skip to content

Commit

Permalink
Fix formatting error for bool in resulted code of visual shader (godo…
Browse files Browse the repository at this point in the history
…tengine#31983)

Fix formatting error for bool in resulted code of visual shader
  • Loading branch information
Chaosus authored Sep 5, 2019
2 parents e205cbb + bd50773 commit c2de268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/resources/visual_shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ Error VisualShader::_write_node(Type type, StringBuilder &global_code, StringBui
} else if (defval.get_type() == Variant::BOOL) {
bool val = defval;
inputs[i] = "n_in" + itos(node) + "p" + itos(i);
code += "\nbool " + inputs[i] + " = " + (val ? "true" : "false") + ";\n";
code += "\tbool " + inputs[i] + " = " + (val ? "true" : "false") + ";\n";
} else if (defval.get_type() == Variant::VECTOR3) {
Vector3 val = defval;
inputs[i] = "n_in" + itos(node) + "p" + itos(i);
Expand Down

0 comments on commit c2de268

Please sign in to comment.