godot
godot copied to clipboard
[Core,Drivers] Improve use of `Ref.is_null/valid`
Use is_null over !is_valid and vice versa.
Split into parts for easier review.
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
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!