some changes

This commit is contained in:
Perfare
2018-03-28 06:29:28 +08:00
parent f87390cc2b
commit e5104d5cc7
14 changed files with 493 additions and 517 deletions

View File

@@ -226,7 +226,7 @@ namespace UnityStudio
{
foreach (var asset in exportableAssets)
{
if (asset.Type2 == 28 && asset.Text == texName)
if (asset.Type == ClassIDReference.Texture2D && asset.Text == texName)
{
TexturePD = asset;
break;
@@ -237,7 +237,7 @@ namespace UnityStudio
}
#endregion
if (TexturePD != null && TexturePD.Type2 == 28)
if (TexturePD != null && TexturePD.Type == ClassIDReference.Texture2D)
{
Textures.Add(TexturePD);