Merge pull request #331 from hiroj/fix_firstPerson_copy_component

fix Pose Freeze Export
This commit is contained in:
gida
2019-11-27 19:52:21 +09:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ namespace VRM
public void CopyTo(GameObject _dst, Dictionary<Transform, Transform> map)
{
var dst = _dst.AddComponent<VRMFirstPerson>();
dst.FirstPersonBone = FirstPersonBone;
dst.FirstPersonBone = map[FirstPersonBone];
dst.FirstPersonOffset = FirstPersonOffset;
dst.Renderers = Renderers.Select(x =>
{

View File

@@ -101,6 +101,7 @@ namespace VRM
{
// fallback
firstPerson.SetDefault();
firstPerson.FirstPersonOffset = gltfFirstPerson.firstPersonBoneOffset;
}
firstPerson.TraverseRenderers(this);