-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Merged by Bors] - Fix end-of-animation index OOB #6210
Conversation
So I'm actually unsure if this was the best way to write that line as the binary search could only ever return at most the final index - same with the |
IMO it's better to code defensively; this behavior may change in the future, so we should be robust to being passed bad data here. |
In this case it's defensive coding against Rust std... Checking for equality could be faster |
Could we use more robust error handling than indexing downstream too? I try to avoid it, precisely because it subtly panics. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
# Objective Fixes #6204 ## Solution Added another branch to handle end-of-animation special case
Pull request successfully merged into main. Build succeeded: |
# Objective Fixes bevyengine#6204 ## Solution Added another branch to handle end-of-animation special case
# Objective Fixes bevyengine#6204 ## Solution Added another branch to handle end-of-animation special case
# Objective Fixes bevyengine#6204 ## Solution Added another branch to handle end-of-animation special case
# Objective Fixes bevyengine#6204 ## Solution Added another branch to handle end-of-animation special case
Objective
Fixes #6204
Solution
Added another branch to handle end-of-animation special case