Skip to content

Commit

Permalink
Merge pull request #331 from hiroj/fix_firstPerson_copy_component
Browse files Browse the repository at this point in the history
fix Pose Freeze Export
  • Loading branch information
Kohei-Yanagida authored Nov 27, 2019
2 parents 291dea0 + f373f1a commit d47fdfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/VRM/UniVRM/Scripts/FirstPerson/VRMFirstPerson.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static IEnumerable<Transform> Traverse(Transform parent)
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 =>
{
Expand Down
1 change: 1 addition & 0 deletions Assets/VRM/UniVRM/Scripts/Format/VRMImporterContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ void LoadFirstPerson()
{
// fallback
firstPerson.SetDefault();
firstPerson.FirstPersonOffset = gltfFirstPerson.firstPersonBoneOffset;
}
firstPerson.TraverseRenderers(this);

Expand Down

0 comments on commit d47fdfe

Please sign in to comment.