fix: attempting to add scene assets to avatar asset

This commit is contained in:
bd_ 2023-08-02 22:53:58 +09:00
parent 0f2895c14e
commit abdbecf26f

View File

@ -134,6 +134,7 @@ namespace nadena.dev.modular_avatar.core.editor
Walk(AvatarDescriptor.gameObject); Walk(AvatarDescriptor.gameObject);
referencedAssets.RemoveWhere(sceneAssets.Contains); referencedAssets.RemoveWhere(sceneAssets.Contains);
referencedAssets.RemoveWhere(a => a is GameObject || a is Component);
referencedAssets.RemoveWhere(o => !string.IsNullOrEmpty(AssetDatabase.GetAssetPath(o))); referencedAssets.RemoveWhere(o => !string.IsNullOrEmpty(AssetDatabase.GetAssetPath(o)));
int index = 0; int index = 0;