Update DefaultFilterRule.cs

pull/17/head
hevinci 2022-06-23 13:58:47 +08:00
parent 8f02bfa3a6
commit 9b80300f19
1 changed files with 1 additions and 1 deletions

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