diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-11 12:38:15 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-11 12:38:15 +0200 |
commit | ea552e10670c97541028cfc167b1854e940ea316 (patch) | |
tree | a99f19baecc70f731a3b025fb101c53a0b6a7b8f /editor/filesystem_dock.cpp | |
parent | eff06004b1ad0d2e3cddba712e15dfbac580c094 (diff) | |
parent | 831a085f67d5ab53d2778501e0849837d4495178 (diff) | |
download | redot-engine-ea552e10670c97541028cfc167b1854e940ea316.tar.gz |
Merge pull request #91471 from aaronp64/filesystemdock_previews
Fix `FileSystemDock` thumbnails sometimes not displaying
Diffstat (limited to 'editor/filesystem_dock.cpp')
-rw-r--r-- | editor/filesystem_dock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index 4c7c723dd5..2da36bfc22 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -776,7 +776,7 @@ void FileSystemDock::navigate_to_path(const String &p_path) { } void FileSystemDock::_file_list_thumbnail_done(const String &p_path, const Ref<Texture2D> &p_preview, const Ref<Texture2D> &p_small_preview, const Variant &p_udata) { - if ((file_list_vb->is_visible_in_tree() || current_path.trim_suffix("/") == p_path.get_base_dir()) && p_preview.is_valid()) { + if (p_preview.is_valid()) { Array uarr = p_udata; int idx = uarr[0]; String file = uarr[1]; |