-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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,Drivers] Improve use of Ref.is_null/valid
#96076
[Core,Drivers] Improve use of Ref.is_null/valid
#96076
Conversation
I agree that using "positive" boolean math is better, but I don't know why we're doing this. Is there a bug or issue relating to this by the general godot engine community? |
This is simply for conformity and clarity of code |
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.
A bit prickly so it already needs a rebase
0f87090
to
f6ebb12
Compare
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.
I noticed this inconsistency as well and I looked forward to see it tweaked.
f6ebb12
to
cd33444
Compare
cd33444
to
cdea2db
Compare
cdea2db
to
bf402da
Compare
Use `is_null` over `!is_valid` and vice versa.
bf402da
to
ec650a2
Compare
Haven't gone back over these to ensure no new ones have cropped up but I tend to keep an eye on reviews so there shouldn't be anything missing |
I'll operate under the assumption that it's accurate; future tweaks likely won't need to be sectioned off like this anyway |
Thanks! |
Use
is_null
over!is_valid
and vice versa.Split into parts for easier review.