Skip to content

Commit

Permalink
fix: VRM0 FirstPerson, Change default value of MeshAnnotation to `aut…
Browse files Browse the repository at this point in the history
  • Loading branch information
0b5vr committed Nov 12, 2024
1 parent 7c8d1e0 commit 21c9c5d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@ export class VRMFirstPersonLoaderPlugin implements GLTFLoaderPlugin {
return 'firstPersonOnly';
} else if (flag === 'ThirdPersonOnly') {
return 'thirdPersonOnly';
} else if (flag === 'Auto') {
return 'auto';
} else {
} else if (flag === 'Both') {
return 'both';
} else {
// The default value is 'Auto' even in VRM0
// See: https://github.com/vrm-c/UniVRM/blob/07d98e2f1abc528d387f860d2224d0855b0d0b59/Assets/VRM/Runtime/FirstPerson/VRMFirstPerson.cs#L117-L119
return 'auto';
}
}
}

0 comments on commit 21c9c5d

Please sign in to comment.