mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-27 14:59:00 +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 (holder.CurrentClip != holder.OriginalClip)
|
||||||
{
|
{
|
||||||
if (!AssetDatabase.IsSubAsset(holder.CurrentClip))
|
if (string.IsNullOrEmpty(AssetDatabase.GetAssetPath(holder.CurrentClip)))
|
||||||
{
|
{
|
||||||
AssetDatabase.AddObjectToAsset(holder.CurrentClip, AssetDatabase.GetAssetPath(state));
|
AssetDatabase.AddObjectToAsset(holder.CurrentClip, AssetDatabase.GetAssetPath(state));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user