diff options
author | Chaosus <chaosus89@gmail.com> | 2019-07-15 08:31:51 +0300 |
---|---|---|
committer | Chaosus <chaosus89@gmail.com> | 2019-07-15 08:31:51 +0300 |
commit | e82b5e910a9c0ad1ae1113b81f4b87913bb983e1 (patch) | |
tree | 8aa82b702835186444684a8a6cdc6d5249ce677d /editor | |
parent | 803544052a6d0aca73e7b3c4b7c3a9c5ee9707d8 (diff) |
Better boolean indication in visual shaders
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/visual_shader_editor_plugin.cpp | 3 |
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)); |