mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-17 11:50:11 +08:00
fix: build fails when already-registered subassets are installed as replacement clips
This commit is contained in:
parent
98365a5bde
commit
05ed734438
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user