From 183f6cdd63b1b1c66feb5b24964d24a620386cf1 Mon Sep 17 00:00:00 2001 From: Artemy Fedotov Date: Thu, 11 Sep 2025 16:44:40 +0400 Subject: [PATCH] Fix favorite folders that are outside of the project being displayed in `FileSystemDock`'s file list (cherry picked from commit 8d137bcd2966a0bdb9b66e3b4a56276875f6dbc4) --- editor/docks/filesystem_dock.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/docks/filesystem_dock.cpp b/editor/docks/filesystem_dock.cpp index e455102fa70..e9629d3ebe9 100644 --- a/editor/docks/filesystem_dock.cpp +++ b/editor/docks/filesystem_dock.cpp @@ -991,6 +991,9 @@ void FileSystemDock::_update_file_list(bool p_keep_selection) { // Display the favorites. Vector favorites_list = EditorSettings::get_singleton()->get_favorites(); for (const String &favorite : favorites_list) { + if (!favorite.begins_with("res://")) { + continue; + } String text; Ref icon; if (favorite == "res://") {