summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-11-10 22:08:24 +0100
committerGitHub <noreply@github.com>2021-11-10 22:08:24 +0100
commit7211012c4f1a737a78436a55fd1c66d7e323b668 (patch)
tree100392a70ee7f68f93df0cbca5acae1a51c908cd /editor/plugins
parent68664c02398e443617ba4d6f3ad9691087ce7e5c (diff)
parent31644fe2809beb9ae98472c7e5da70a130894f39 (diff)
Merge pull request #54745 from KoBeWi/find_in_scenes
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/script_editor_plugin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index 000dfe8bda..dbd5b32e3c 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -3465,6 +3465,9 @@ void ScriptEditor::_on_find_in_files_result_selected(String fpath, int line_numb
shader_editor->make_visible(true);
shader_editor->get_shader_editor()->goto_line_selection(line_number - 1, begin, end);
return;
+ } else if (fpath.get_extension() == "tscn") {
+ editor->load_scene(fpath);
+ return;
} else {
Ref<Script> script = res;
if (script.is_valid()) {