summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2019-07-15 08:47:31 +0300
committerGitHub <noreply@github.com>2019-07-15 08:47:31 +0300
commitb3745e3fe9672c161c3ce495781131129fe7cf69 (patch)
tree8aa82b702835186444684a8a6cdc6d5249ce677d
parent803544052a6d0aca73e7b3c4b7c3a9c5ee9707d8 (diff)
parente82b5e910a9c0ad1ae1113b81f4b87913bb983e1 (diff)
Merge pull request #30589 from Chaosus/vs_boolean_fix
Better boolean indication in visual shaders
-rw-r--r--editor/plugins/visual_shader_editor_plugin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp
index 5c505e0c06..a45782a122 100644
--- a/editor/plugins/visual_shader_editor_plugin.cpp
+++ b/editor/plugins/visual_shader_editor_plugin.cpp
@@ -542,6 +542,9 @@ void VisualShaderEditor::_update_graph() {
button->set_custom_minimum_size(Size2(30, 0) * EDSCALE);
button->connect("draw", this, "_draw_color_over_button", varray(button, default_value));
} break;
+ case Variant::BOOL: {
+ button->set_text(((bool)default_value) ? "true" : "false");
+ } break;
case Variant::INT:
case Variant::REAL: {
button->set_text(String::num(default_value, 4));