-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
[Core] Add LocalVector::has
for convenience
#91621
Conversation
Will open a godot-cpp PR as well |
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.
Yes please.
The navigation module NavMap also has a lot of uses of the LocalVector find() that you could likely replace if you feel like it.
Couldn't find any in there but will add any I find and squash Edit: Found them, they used an unorthodox syntax |
1620dc9
to
86de59d
Compare
Thanks! |
Shouldn't this have |
It is missing from several short methods here, and should happen with any decent compiler, would be worth going over cases generally though here |
Not too many cases but useful for parity and clarity
Came across the discrepancy when working on:
find
withcontains/has
where applicable #91619