diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 70ec22e2972..48cff5aa8e3 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -759,6 +759,7 @@ void Viewport::_process_picking() { } if (new_collider.is_valid()) { + DEV_ASSERT(co); co->_mouse_enter(); }