Skip to content

Commit

Permalink
Fix accidental change to AvatarPrefab behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoco007 committed Oct 28, 2024
1 parent ce9529f commit 7684cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/CustomAvatar/Avatar/AvatarSpawner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public SpawnedAvatar SpawnAvatar(AvatarPrefab avatar, IAvatarInput input, Transf
internal GameObject SpawnBareAvatar(AvatarPrefab avatar, Transform parent = null)
{
GameObject avatarInstance = Object.Instantiate(avatar, parent, false).gameObject;
avatarInstance.GetComponent<AvatarPrefab>().enabled = false;
Object.DestroyImmediate(avatarInstance.GetComponent<AvatarPrefab>());
return avatarInstance;
}

Expand Down

0 comments on commit 7684cb2

Please sign in to comment.