1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Properly handle scenes in Find in Files

(cherry picked from commit 31644fe280)
This commit is contained in:
kobewi
2021-11-08 02:28:55 +01:00
committed by Rémi Verschelde
parent 8cff76ffc7
commit 5f081de854

View File

@@ -3000,6 +3000,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()) {