From 452e10ba7bd9a86bb911c49e810eda4aadf4b90c Mon Sep 17 00:00:00 2001 From: kobewi Date: Fri, 25 Jun 2021 15:46:37 +0200 Subject: Remove clips_input() method and use clip_content --- scene/main/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/main/viewport.cpp') diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index e31135b46a..4c9c1c0055 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1746,7 +1746,7 @@ Control *Viewport::_gui_find_control_at_pos(CanvasItem *p_node, const Point2 &p_ Control *c = Object::cast_to(p_node); - if (!c || !c->clips_input() || c->has_point(matrix.affine_inverse().xform(p_global))) { + if (!c || !c->is_clipping_contents() || c->has_point(matrix.affine_inverse().xform(p_global))) { for (int i = p_node->get_child_count() - 1; i >= 0; i--) { CanvasItem *ci = Object::cast_to(p_node->get_child(i)); if (!ci || ci->is_set_as_top_level()) { -- cgit v1.2.3