mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-26 00:29:19 -05:00
[vrm0][firstperson] skip -1
This commit is contained in:
parent
a3aeafeac5
commit
15301ba48d
|
|
@ -185,11 +185,14 @@ namespace VRM
|
|||
{
|
||||
VRM.firstPerson.firstPersonBone = Nodes.IndexOf(firstPerson.FirstPersonBone);
|
||||
VRM.firstPerson.firstPersonBoneOffset = firstPerson.FirstPersonOffset;
|
||||
VRM.firstPerson.meshAnnotations = firstPerson.Renderers.Select(x => new glTF_VRM_MeshAnnotation
|
||||
{
|
||||
mesh = Meshes.IndexOf(x.SharedMesh),
|
||||
firstPersonFlag = x.FirstPersonFlag.ToString(),
|
||||
}).ToList();
|
||||
VRM.firstPerson.meshAnnotations = firstPerson.Renderers
|
||||
.Select(x => new glTF_VRM_MeshAnnotation
|
||||
{
|
||||
mesh = Meshes.IndexOf(x.SharedMesh),
|
||||
firstPersonFlag = x.FirstPersonFlag.ToString(),
|
||||
})
|
||||
.Where(x => x.mesh != -1)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
// lookAt
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user