diff options
author | kobewi <kobewi4e@gmail.com> | 2021-11-08 02:28:55 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2021-11-08 02:28:55 +0100 |
commit | 31644fe2809beb9ae98472c7e5da70a130894f39 (patch) | |
tree | b693a1443de0545ce998f40c56b00112c8b6ec4f /editor/plugins | |
parent | ce634e03d5bbfe7f92b6285a79e8c0ce29649642 (diff) |
Properly handle scenes in Find in Files
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index aad378ecec..5485fcf6bc 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -3434,6 +3434,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()) { |