mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-25 02:00:16 +00:00
fix #138
This commit is contained in:
@@ -340,11 +340,13 @@ namespace YooAsset.Editor
|
|||||||
List<string> result = new List<string>(depends.Length);
|
List<string> result = new List<string>(depends.Length);
|
||||||
foreach (string assetPath in depends)
|
foreach (string assetPath in depends)
|
||||||
{
|
{
|
||||||
|
// 注意:排除主资源对象
|
||||||
|
if (assetPath == mainAssetPath)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (IsValidateAsset(assetPath, false))
|
if (IsValidateAsset(assetPath, false))
|
||||||
{
|
{
|
||||||
// 注意:排除主资源对象
|
result.Add(assetPath);
|
||||||
if (assetPath != mainAssetPath)
|
|
||||||
result.Add(assetPath);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user