Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 149a173

Browse files
committed
Added an exclusion list to CubeLutAssetImporter
1 parent d07a9fa commit 149a173

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

PostProcessing/Editor/Tools/CubeLutAssetImporter.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,24 @@ namespace UnityEditor.Rendering.PostProcessing
77
{
88
sealed class CubeLutAssetImporter : AssetPostprocessor
99
{
10+
static List<string> s_Excluded = new List<string>()
11+
{
12+
"Linear to sRGB r1",
13+
"Linear to Unity Log r1",
14+
"sRGB to Linear r1",
15+
"sRGB to Unity Log r1",
16+
"Unity Log to Linear r1",
17+
"Unity Log to sRGB r1"
18+
};
19+
1020
static void OnPostprocessAllAssets(string[] imported, string[] deleted, string[] moved, string[] movedFrom)
1121
{
1222
foreach (string path in imported)
1323
{
1424
string ext = Path.GetExtension(path);
15-
16-
if (string.IsNullOrEmpty(ext))
25+
string filename = Path.GetFileNameWithoutExtension(path);
26+
27+
if (string.IsNullOrEmpty(ext) || s_Excluded.Contains(filename))
1728
continue;
1829

1930
ext = ext.ToLowerInvariant();

0 commit comments

Comments
 (0)