From ecfced7195b7c5a9a288731936837ec62ada5839 Mon Sep 17 00:00:00 2001 From: hevinci Date: Thu, 3 Nov 2022 12:02:10 +0800 Subject: [PATCH] Fix #38 --- .../AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs index d584dc4..b5516e1 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs @@ -168,6 +168,10 @@ namespace YooAsset.Editor shaderBundleReferenceList.Add(valuePair.Key); } + // 注意:没有任何资源依赖着色器 + if (shaderBundleReferenceList.Count == 0) + return; + // 获取着色器资源包索引 Predicate predicate = new Predicate(s => s.BundleName == shadersBunldeName); int shaderBundleId = patchManifest.BundleList.FindIndex(predicate);