From 650b9d62e453c920cd301225e09c56e956ba3cd6 Mon Sep 17 00:00:00 2001 From: jsjtxietian Date: Thu, 25 Jan 2024 14:18:48 +0800 Subject: [PATCH] Fix editor will freeze when modifying filesystem filter path in Split Mode --- editor/filesystem_dock.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index ecbfe4bec5c..216b948ed85 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -1004,6 +1004,9 @@ void FileSystemDock::_update_file_list(bool p_keep_selection) { } } } else { + if (!directory.begins_with("res://")) { + directory = "res://" + directory; + } // Get infos on the directory + file. if (directory.ends_with("/") && directory != "res://") { directory = directory.substr(0, directory.length() - 1);