mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-28 10:15:06 +08:00
fix: Visible Head Accessory incorrectly applied when building for Quest standalone (#514)
This commit is contained in:
parent
a5bc6c50ac
commit
b4a64f2a4e
@ -80,6 +80,13 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
|
||||
bool Process(ModularAvatarVisibleHeadAccessory target)
|
||||
{
|
||||
#if UNITY_ANDROID
|
||||
foreach (var target in _avatar.GetComponentsInChildren<ModularAvatarVisibleHeadAccessory>(true))
|
||||
{
|
||||
Object.DestroyImmediate(target);
|
||||
}
|
||||
return;
|
||||
#endif
|
||||
bool didWork = false;
|
||||
|
||||
if (Validate(target) == ReadyStatus.Ready)
|
||||
@ -161,4 +168,4 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
return status;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user