mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55: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)
|
bool Process(ModularAvatarVisibleHeadAccessory target)
|
||||||
{
|
{
|
||||||
|
#if UNITY_ANDROID
|
||||||
|
foreach (var target in _avatar.GetComponentsInChildren<ModularAvatarVisibleHeadAccessory>(true))
|
||||||
|
{
|
||||||
|
Object.DestroyImmediate(target);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
bool didWork = false;
|
bool didWork = false;
|
||||||
|
|
||||||
if (Validate(target) == ReadyStatus.Ready)
|
if (Validate(target) == ReadyStatus.Ready)
|
||||||
|
Loading…
Reference in New Issue
Block a user