diff options
| author | Juan Linietsky | 2017-06-12 19:23:37 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-06-12 19:23:37 -0300 |
| commit | 831860695c8404720f4b7d2e0a4d93ad2f308c21 (patch) | |
| tree | aa1d356b211d91d5b9da76d6fc6952f468dcf6a2 /editor/plugins/shader_editor_plugin.cpp | |
| parent | 41c3ca358e1b4c6d4a3bcbd1a158f20cb0016e4e (diff) | |
| download | godot-831860695c8404720f4b7d2e0a4d93ad2f308c21.tar.gz godot-831860695c8404720f4b7d2e0a4d93ad2f308c21.tar.zst godot-831860695c8404720f4b7d2e0a4d93ad2f308c21.zip | |
Fix empty shader related crash, closes #8314
Diffstat (limited to '')
| -rw-r--r-- | editor/plugins/shader_editor_plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/plugins/shader_editor_plugin.cpp b/editor/plugins/shader_editor_plugin.cpp index 8ae7d55bd..7c8ee97f2 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() { |
