Fix formatting error for bool in resulted code of visual shader
This commit is contained in:
parent
e205cbbd06
commit
bd507739ea
1 changed files with 1 additions and 1 deletions
|
@ -1083,7 +1083,7 @@ Error VisualShader::_write_node(Type type, StringBuilder &global_code, StringBui
|
||||||
} else if (defval.get_type() == Variant::BOOL) {
|
} else if (defval.get_type() == Variant::BOOL) {
|
||||||
bool val = defval;
|
bool val = defval;
|
||||||
inputs[i] = "n_in" + itos(node) + "p" + itos(i);
|
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) {
|
} else if (defval.get_type() == Variant::VECTOR3) {
|
||||||
Vector3 val = defval;
|
Vector3 val = defval;
|
||||||
inputs[i] = "n_in" + itos(node) + "p" + itos(i);
|
inputs[i] = "n_in" + itos(node) + "p" + itos(i);
|
||||||
|
|
Loading…
Reference in a new issue