You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Remove clips_input() method and use clip_content
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user