summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-06-04 11:26:14 +0200
committerGitHub <noreply@github.com>2021-06-04 11:26:14 +0200
commit875ed4d600e6ae3a41841443a34ed4ede1c8e6fd (patch)
treeab2ffccce1654093fba800f09afc4e1ff821b5c9 /editor/plugins/script_editor_plugin.cpp
parentc33d444a546674572f3cfdcad47e1f990abb5390 (diff)
parentb191a7547c0bc6b14ab7e37e7cd36d37ec6dc276 (diff)
downloadredot-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.cpp2
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);