summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2019-09-05 08:50:54 +0300
committerGitHub <noreply@github.com>2019-09-05 08:50:54 +0300
commitc2de26822f56878a694dfab0c68ad3391995f161 (patch)
tree5d2422f16143723dd20a0db637843737666d5ce1
parente205cbbd06deb02eff579469fa420ac25dc0688f (diff)
parentbd507739ea673d9c4142c316e652a015783033a6 (diff)
Fix formatting error for bool in resulted code of visual shader (#31983)
Fix formatting error for bool in resulted code of visual shader
-rw-r--r--scene/resources/visual_shader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp
index ecbe838a82..f5ea6adc85 100644
--- a/scene/resources/visual_shader.cpp
+++ b/scene/resources/visual_shader.cpp
@@ -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);