mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-18 02:18:59 +08:00
chore: fix issues with Visible Head Accessory patch
This commit is contained in:
parent
344a03d8d6
commit
0bab5d1dce
@ -81,12 +81,10 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
bool Process(ModularAvatarVisibleHeadAccessory target)
|
bool Process(ModularAvatarVisibleHeadAccessory target)
|
||||||
{
|
{
|
||||||
#if UNITY_ANDROID
|
#if UNITY_ANDROID
|
||||||
foreach (var target in _avatar.GetComponentsInChildren<ModularAvatarVisibleHeadAccessory>(true))
|
Object.DestroyImmediate(target);
|
||||||
{
|
return false;
|
||||||
Object.DestroyImmediate(target);
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool didWork = false;
|
bool didWork = false;
|
||||||
|
|
||||||
if (Validate(target) == ReadyStatus.Ready)
|
if (Validate(target) == ReadyStatus.Ready)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user