fix: build fails when already-registered subassets are installed as replacement clips

This commit is contained in:
bd_ 2023-07-29 16:07:46 +09:00
parent 98365a5bde
commit 05ed734438

View File

@ -181,7 +181,7 @@ namespace nadena.dev.modular_avatar.core.editor
{
if (holder.CurrentClip != holder.OriginalClip)
{
if (!AssetDatabase.IsSubAsset(holder.CurrentClip))
if (string.IsNullOrEmpty(AssetDatabase.GetAssetPath(holder.CurrentClip)))
{
AssetDatabase.AddObjectToAsset(holder.CurrentClip, AssetDatabase.GetAssetPath(state));
}