diff options
Diffstat (limited to 'scene')
-rw-r--r-- | scene/main/viewport.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index a2963eadd5..1de3caaa97 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1403,10 +1403,6 @@ Control *Viewport::gui_find_control(const Point2 &p_global) { } Control *Viewport::_gui_find_control_at_pos(CanvasItem *p_node, const Point2 &p_global, const Transform2D &p_xform, Transform2D &r_inv_xform) { - if (Object::cast_to<Viewport>(p_node)) { - return nullptr; - } - if (!p_node->is_visible()) { return nullptr; // Canvas item hidden, discard. } |