Rename the .shader file extension to .gdshader

This lets third-party software recognize Godot shaders more easily,
without relying on guesswork since the `.shader` extension is generic.
This commit is contained in:
Hugo Locurcio 2021-03-24 19:50:41 +01:00
parent 9a64d6b2b2
commit b191a7547c
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
5 changed files with 12 additions and 6 deletions

View file

@ -3172,7 +3172,7 @@ void ScriptEditor::_on_find_in_files_result_selected(String fpath, int line_numb
if (ResourceLoader::exists(fpath)) {
RES res = ResourceLoader::load(fpath);
if (fpath.get_extension() == "shader") {
if (fpath.get_extension() == "gdshader") {
ShaderEditorPlugin *shader_editor = Object::cast_to<ShaderEditorPlugin>(EditorNode::get_singleton()->get_editor_data().get_editor("Shader"));
shader_editor->edit(res.ptr());
shader_editor->make_visible(true);