Skip to content

Commit

Permalink
Use is_null() instead of !is_valid()
Browse files Browse the repository at this point in the history
Co-authored-by: A Thousand Ships <[email protected]>
  • Loading branch information
jadoc and AThousandShips authored Aug 23, 2024
1 parent 1df064c commit 9d93255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/main/viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1936,7 +1936,7 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
// If the tooltip timer isn't running, start it.
// Otherwise, only reset the timer if the mouse has moved more than 5 pixels.
if (!is_tooltip_shown && over->can_process() &&
(!gui.tooltip_timer.is_valid() ||
(gui.tooltip_timer.is_null() ||
Math::is_zero_approx(gui.tooltip_timer->get_time_left()) ||
mm->get_relative().length() > 5.0)) {
if (gui.tooltip_timer.is_valid()) {
Expand Down

0 comments on commit 9d93255

Please sign in to comment.