Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type mismatch during inital OnAvatarEyeHeightChanged call #119

Merged

Conversation

Nestorboy
Copy link
Member

@Nestorboy Nestorboy commented Jun 16, 2024

When a player joins, OnAvatarEyeHeightChanged is invoked with the prevEyeHeightAsMeters parameter passed as the literal integer 0, causing a type mismatch since it is expected to be a float.

The issue was brought to my attention by another user using one of my prefabs:
Nestorboy/NUMovement#3

@Nestorboy
Copy link
Member Author

Nestorboy commented Jul 6, 2024

I ended up creating a Canny post at the same time but forgot to link it here:
https://feedback.vrchat.com/udon/p/initial-clientsim-onavatareyeheightchanged-causes-type-mismatch

@Nestorboy Nestorboy changed the title Fixed type mismatch during inital OnAvatarEyeHeightChanged call Fix type mismatch during inital OnAvatarEyeHeightChanged call Nov 1, 2024
@momo-the-monster momo-the-monster merged commit 835a346 into vrchat-community:main Jan 14, 2025
1 check passed
@momo-the-monster
Copy link
Collaborator

Merging in since we haven't synced the upstream fix to this repo yet.
Thanks for your contribution!

@github-actions github-actions bot locked and limited conversation to collaborators Jan 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants