summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-06-12 19:23:37 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-06-12 19:23:37 -0300
commit831860695c8404720f4b7d2e0a4d93ad2f308c21 (patch)
treeaa1d356b211d91d5b9da76d6fc6952f468dcf6a2 /editor/plugins
parent41c3ca358e1b4c6d4a3bcbd1a158f20cb0016e4e (diff)
Fix empty shader related crash, closes #8314
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/shader_editor_plugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/plugins/shader_editor_plugin.cpp b/editor/plugins/shader_editor_plugin.cpp
index 8ae7d55bdd..7c8ee97f22 100644
--- a/editor/plugins/shader_editor_plugin.cpp
+++ b/editor/plugins/shader_editor_plugin.cpp
@@ -552,7 +552,8 @@ ShaderEditorPlugin::ShaderEditorPlugin(EditorNode *p_node) {
shader_editor = memnew(ShaderEditor);
shader_editor->set_custom_minimum_size(Size2(0, 300));
- button = editor->add_bottom_panel_item("Shader", shader_editor);
+ button = editor->add_bottom_panel_item(TTR("Shader"), shader_editor);
+ button->hide();
}
ShaderEditorPlugin::~ShaderEditorPlugin() {