diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-06-04 11:26:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-04 11:26:14 +0200 |
commit | 875ed4d600e6ae3a41841443a34ed4ede1c8e6fd (patch) | |
tree | ab2ffccce1654093fba800f09afc4e1ff821b5c9 /editor/plugins/script_editor_plugin.cpp | |
parent | c33d444a546674572f3cfdcad47e1f990abb5390 (diff) | |
parent | b191a7547c0bc6b14ab7e37e7cd36d37ec6dc276 (diff) | |
download | redot-engine-875ed4d600e6ae3a41841443a34ed4ede1c8e6fd.tar.gz |
Merge pull request #47336 from Calinou/rename-shader-file-extension
Rename the `.shader` file extension to `.gdshader`
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 623e4ea66e..156b7782ef 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -3188,7 +3188,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); |