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

chore: remove finite check from LocalPlayer #4795

Merged
merged 19 commits into from
Oct 5, 2021

Conversation

pollend
Copy link
Member

@pollend pollend commented Jun 25, 2021

we've mentioned in the past having a situation where the player position is placed at (0,0,0). I'm suspecting it has something to do with this logic. so for an invalid position we just return dest or a new Vector3/Quaternion. we shouldn't be just defaulting to 0,0,0. this ends up hiding a larger underlying problem where we see some odd behavior but we've written this logic in a way to hide a large problem. I rather have the game crash with a stacktrace then try poking at thing in the dark because we've written ourselves into a corner.

#4152 #4662

@github-actions github-actions bot added the Type: Chore Request for or implementation of maintenance changes label Jun 25, 2021
@pollend pollend marked this pull request as ready for review July 28, 2021 03:59
@pollend
Copy link
Member Author

pollend commented Aug 10, 2021

want to test this with multiplayer but I think I've mostly addressed the broken cases

@jdrueckert
Copy link
Member

Tested with local (non-headless) multiplayer. Normal LocalPlayer behavior didn't seem to be negatively impacted by this change.

@jdrueckert jdrueckert merged commit c8a53b5 into develop Oct 5, 2021
@jdrueckert jdrueckert deleted the chore/remove-checks-LocalPlayer branch October 5, 2021 21:41
keturn added a commit that referenced this pull request May 10, 2022
Restores the alternate behavior described in the docstring,
correcting a regression introduced in #4795.

This "LocalPlayer without camera" situation has come up in headless MTE tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Chore Request for or implementation of maintenance changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants