mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-30 14:53:09 -05:00
Merge pull request #331 from hiroj/fix_firstPerson_copy_component
fix Pose Freeze Export
This commit is contained in:
@@ -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 =>
|
||||
{
|
||||
|
||||
@@ -101,6 +101,7 @@ namespace VRM
|
||||
{
|
||||
// fallback
|
||||
firstPerson.SetDefault();
|
||||
firstPerson.FirstPersonOffset = gltfFirstPerson.firstPersonBoneOffset;
|
||||
}
|
||||
firstPerson.TraverseRenderers(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user