Skip to content

Commit

Permalink
disable Convert 3.x Shader if deprecated is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitalita committed Feb 10, 2024
1 parent 535f4f3 commit dc3fc58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/plugins/text_shader_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1185,9 +1185,10 @@ TextShaderEditor::TextShaderEditor() {
edit_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("script_text_editor/toggle_word_wrap"), EDIT_TOGGLE_WORD_WRAP);
edit_menu->get_popup()->add_separator();
edit_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("ui_text_completion_query"), EDIT_COMPLETE);
edit_menu->get_popup()->add_separator();
#ifndef DISABLE_DEPRECATED
edit_menu->get_popup()->add_item(TTR("Convert 3.x Shader"), EDIT_CONVERT);
edit_menu->get_popup()->connect("id_pressed", callable_mp(this, &TextShaderEditor::_menu_option));
#endif

search_menu = memnew(MenuButton);
search_menu->set_shortcut_context(this);
Expand Down

0 comments on commit dc3fc58

Please sign in to comment.