diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-06-25 16:53:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-25 16:53:00 +0200 |
commit | c8444c3ee078e33c33287cf879aa5daecb962a80 (patch) | |
tree | d7db0e6916d54be647971d939185bbacad1e231c /scene/main | |
parent | 258cee760020452d786a770d5e171b119bfa8608 (diff) | |
parent | 452e10ba7bd9a86bb911c49e810eda4aadf4b90c (diff) |
Merge pull request #49908 from KoBeWi/📎🔫
Remove clips_input() method and use clip_content
Diffstat (limited to 'scene/main')
-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()) { |