Skip to content

Commit

Permalink
Merge pull request #1528 from pixiv/mesh-annotations-vrm0
Browse files Browse the repository at this point in the history
fix: VRM0 FirstPerson, Change default value of MeshAnnotation to `auto` instead of `both`
  • Loading branch information
0b5vr authored Nov 12, 2024
2 parents 69117d5 + 21c9c5d commit 96257fc
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 96257fc

Please sign in to comment.