diff options
author | kobewi <kobewi4e@gmail.com> | 2024-05-08 13:36:49 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2024-05-08 13:36:49 +0200 |
commit | eb570463a27247c25403b6fae1c4d62ec628fef4 (patch) | |
tree | fc13eb01a32434588690c21ec3228fef975ad23e | |
parent | 281fe39929303a8ef12e72ff7999b849bbe0678d (diff) | |
download | redot-engine-eb570463a27247c25403b6fae1c4d62ec628fef4.tar.gz |
Revert as_sortable_control() change in SplitContainer
-rw-r--r-- | scene/gui/split_container.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/split_container.cpp b/scene/gui/split_container.cpp index 4ea67eec49..98b1db4a96 100644 --- a/scene/gui/split_container.cpp +++ b/scene/gui/split_container.cpp @@ -126,8 +126,8 @@ Control *SplitContainer::get_containable_child(int p_idx) const { int idx = 0; for (int i = 0; i < get_child_count(false); i++) { - Control *c = as_sortable_control(get_child(i, false)); - if (!c) { + Control *c = Object::cast_to<Control>(get_child(i, false)); + if (!c || !c->is_visible() || c->is_set_as_top_level()) { continue; } |