Merge pull request #97495 from Delsin-Yu/control_recursive_disable_children

[GUI] Implement properties that can recursively disable child controls' `Focus Mode` & `Mouse Filter`
This commit is contained in:
Rémi Verschelde
2025-03-19 12:26:03 +01:00
8 changed files with 212 additions and 18 deletions

View File

@ -1198,7 +1198,7 @@ bool GraphEdit::_check_clickable_control(Control *p_control, const Vector2 &mpos
control_rect.size *= zoom;
control_rect.position += p_offset;
if (!control_rect.has_point(mpos) || p_control->get_mouse_filter() == MOUSE_FILTER_IGNORE) {
if (!control_rect.has_point(mpos) || p_control->get_mouse_filter_with_recursive() == MOUSE_FILTER_IGNORE) {
// Test children.
for (int i = 0; i < p_control->get_child_count(); i++) {
Control *child_rect = Object::cast_to<Control>(p_control->get_child(i));