diff options
author | kobewi <kobewi4e@gmail.com> | 2021-06-25 15:46:37 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2021-06-25 15:46:37 +0200 |
commit | 452e10ba7bd9a86bb911c49e810eda4aadf4b90c (patch) | |
tree | 5e494ae8746369c587adc7e7d1e290a7bbb9e63e /scene/main/viewport.cpp | |
parent | e4430771dbc6d1f2e349ba180ba74834274f397c (diff) |
Remove clips_input() method and use clip_content
Diffstat (limited to 'scene/main/viewport.cpp')
-rw-r--r-- | scene/main/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Control>(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<CanvasItem>(p_node->get_child(i)); if (!ci || ci->is_set_as_top_level()) { |