summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-05-23 20:22:44 +0200
committerGitHub <noreply@github.com>2020-05-23 20:22:44 +0200
commit57d21ebeda8460036efac1f70cd9ecd0896de517 (patch)
treefe062176b1c3fa2e4f5fd7a42bea39ee2fa7dd43 /scene/gui
parent46450979dbcb6014957d8849c98efa81d0c921f4 (diff)
parent3ad694018fe02447d9ad3051b9d2f6616bc52e74 (diff)
Merge pull request #38396 from nekomatata/unexpose-sort-children
Fix Container sorting not working when overriding _sort_children in gdscript
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/container.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/scene/gui/container.cpp b/scene/gui/container.cpp
index 18a84ce348..a89eef6209 100644
--- a/scene/gui/container.cpp
+++ b/scene/gui/container.cpp
@@ -140,7 +140,7 @@ void Container::queue_sort() {
return;
}
- MessageQueue::get_singleton()->push_call(this, "_sort_children");
+ MessageQueue::get_singleton()->push_callable(callable_mp(this, &Container::_sort_children));
pending_sort = true;
}
@@ -177,8 +177,6 @@ String Container::get_configuration_warning() const {
}
void Container::_bind_methods() {
- ClassDB::bind_method(D_METHOD("_sort_children"), &Container::_sort_children);
-
ClassDB::bind_method(D_METHOD("queue_sort"), &Container::queue_sort);
ClassDB::bind_method(D_METHOD("fit_child_in_rect", "child", "rect"), &Container::fit_child_in_rect);