This commit is contained in:
ousttrue 2021-01-13 17:27:44 +09:00
parent 0c0e8d90c1
commit a3fbd81c66

View File

@ -83,7 +83,10 @@ namespace VRM
.ToDictionary(x => x.Key, x => boneMap[x.Value])
;
var animator = dst.AddComponent<Animator>();
if (dst.GetComponent<Animator>() == null)
{
var animator = dst.AddComponent<Animator>();
}
var vrmHuman = go.GetComponent<VRMHumanoidDescription>();
var avatarDescription = AvatarDescription.Create();
if (vrmHuman != null && vrmHuman.Description != null)