Skip to content

Commit 10a0cad

Browse files
committed
Update MRTKFiles.cs
1 parent 0622090 commit 10a0cad

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

org.mixedrealitytoolkit.core/Editor/MRTKFiles.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,15 @@ public static void OnPostprocessAllAssets(string[] importedAssets, string[] dele
6666
if (Path.GetFileName(asset) == GeneratedSentinelFileName)
6767
{
6868
string newPath = Path.GetDirectoryName(asset);
69-
if (generatedFolderPath != string.Empty && generatedFolderPath != newPath)
69+
if (generatedFolderPath != newPath)
7070
{
71-
Debug.LogWarning($"Previous MRTK.Generated folder was not unregistered properly: {generatedFolderPath}.\nReplacing with {newPath}");
71+
if (generatedFolderPath != string.Empty)
72+
{
73+
Debug.LogWarning($"Previous MRTK.Generated folder was not unregistered properly: {generatedFolderPath}.\nReplacing with {newPath}");
74+
}
75+
Debug.Log($"Found MRTK.Generated at {newPath}.");
76+
generatedFolderPath = newPath;
7277
}
73-
Debug.Log($"Found MRTK.Generated at {newPath}.");
74-
generatedFolderPath = newPath;
7578
}
7679
}
7780
}

0 commit comments

Comments
 (0)