Update DefaultFilterRule.cs

This commit is contained in:
hevinci
2022-06-23 13:58:47 +08:00
parent 8f02bfa3a6
commit 9b80300f19

View File

@@ -47,7 +47,7 @@ namespace YooAsset.Editor
var mainAssetType = AssetDatabase.GetMainAssetTypeAtPath(data.AssetPath);
if(mainAssetType == typeof(Texture2D))
{
var texImporter = TextureImporter.GetAtPath(data.AssetPath) as TextureImporter;
var texImporter = AssetImporter.GetAtPath(data.AssetPath) as TextureImporter;
if (texImporter != null && texImporter.textureType == TextureImporterType.Sprite)
return true;
else