From a5bcff52313a18e92acf74f37bf7e0d68fcea399 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 11 May 2022 19:03:19 +0200 Subject: [PATCH] Skip assets from temporary folder in Content Search --- Source/Editor/Windows/Search/ContentSearchWindow.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Editor/Windows/Search/ContentSearchWindow.cs b/Source/Editor/Windows/Search/ContentSearchWindow.cs index d8d061112..7c433f6ca 100644 --- a/Source/Editor/Windows/Search/ContentSearchWindow.cs +++ b/Source/Editor/Windows/Search/ContentSearchWindow.cs @@ -468,6 +468,7 @@ namespace FlaxEngine.Windows.Search } // Iterate over all assets + var tempFolder = StringUtils.NormalizePath(Path.GetDirectoryName(Globals.TemporaryFolder)); for (var i = 0; i < assets.Length && !_token.IsCancellationRequested; i++) { var id = assets[i]; @@ -476,6 +477,8 @@ namespace FlaxEngine.Windows.Search continue; if (!validTypeNames.Contains(assetInfo.TypeName)) continue; + if (assetInfo.Path.StartsWith(tempFolder)) + continue; // TODO: implement assets indexing or other caching for faster searching var asset = Content.LoadAsync(id); if (asset == null)