From a3fbd81c662c2ef9967affb435fd178407199d41 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 13 Jan 2021 17:27:44 +0900 Subject: [PATCH] fix --- Assets/VRM/Runtime/SkinnedMeshUtility/VRMBoneNormalizer.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/VRM/Runtime/SkinnedMeshUtility/VRMBoneNormalizer.cs b/Assets/VRM/Runtime/SkinnedMeshUtility/VRMBoneNormalizer.cs index 7c5bacee3..6ff4265bd 100644 --- a/Assets/VRM/Runtime/SkinnedMeshUtility/VRMBoneNormalizer.cs +++ b/Assets/VRM/Runtime/SkinnedMeshUtility/VRMBoneNormalizer.cs @@ -83,7 +83,10 @@ namespace VRM .ToDictionary(x => x.Key, x => boneMap[x.Value]) ; - var animator = dst.AddComponent(); + if (dst.GetComponent() == null) + { + var animator = dst.AddComponent(); + } var vrmHuman = go.GetComponent(); var avatarDescription = AvatarDescription.Create(); if (vrmHuman != null && vrmHuman.Description != null)