From abdbecf26f6773fe30629bd26c7745c13adad465 Mon Sep 17 00:00:00 2001 From: bd_ Date: Wed, 2 Aug 2023 22:53:58 +0900 Subject: [PATCH] fix: attempting to add scene assets to avatar asset --- Packages/nadena.dev.modular-avatar/Editor/BuildContext.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Packages/nadena.dev.modular-avatar/Editor/BuildContext.cs b/Packages/nadena.dev.modular-avatar/Editor/BuildContext.cs index 72adf09d..40d73d4d 100644 --- a/Packages/nadena.dev.modular-avatar/Editor/BuildContext.cs +++ b/Packages/nadena.dev.modular-avatar/Editor/BuildContext.cs @@ -134,6 +134,7 @@ namespace nadena.dev.modular_avatar.core.editor Walk(AvatarDescriptor.gameObject); referencedAssets.RemoveWhere(sceneAssets.Contains); + referencedAssets.RemoveWhere(a => a is GameObject || a is Component); referencedAssets.RemoveWhere(o => !string.IsNullOrEmpty(AssetDatabase.GetAssetPath(o))); int index = 0;