1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Fix empty shader related crash, closes #8314

This commit is contained in:
Juan Linietsky
2017-06-12 19:23:37 -03:00
parent 41c3ca358e
commit 831860695c
3 changed files with 8 additions and 2 deletions

View File

@@ -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() {