mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix editor crash cause by EditorFileSystem::get_singleton access in theme initialization path
This commit is contained in:
parent
6c9aa4c7d3
commit
6aae7d7345
1 changed files with 1 additions and 1 deletions
|
@ -3442,7 +3442,7 @@ bool EditorFileSystem::_should_skip_directory(const String &p_path) {
|
|||
|
||||
if (FileAccess::exists(p_path.path_join("project.godot"))) {
|
||||
// Skip if another project inside this.
|
||||
if (EditorFileSystem::get_singleton()->first_scan) {
|
||||
if (EditorFileSystem::get_singleton() == nullptr || EditorFileSystem::get_singleton()->first_scan) {
|
||||
WARN_PRINT_ONCE(vformat("Detected another project.godot at %s. The folder will be ignored.", p_path));
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue