Merge pull request #96292 from AThousandShips/null_check_ref_fix
Cleanup of raw `nullptr` checks with `Ref`
This commit is contained in:
commit
d15de6f264
48 changed files with 169 additions and 170 deletions
|
|
@ -300,7 +300,7 @@ bool Path2DEditor::forward_gui_input(const Ref<InputEvent> &p_event) {
|
|||
Vector2 gpoint = mm->get_position();
|
||||
|
||||
Ref<Curve2D> curve = node->get_curve();
|
||||
if (curve == nullptr) {
|
||||
if (curve.is_null()) {
|
||||
return true;
|
||||
}
|
||||
if (curve->get_point_count() < 2) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue