mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 13:43:15 +00:00
Fix NOTIFICATION_SORT_CHILDREN
is called twice on startup
This commit is contained in:
parent
705b7a0b0b
commit
62a58c5538
@ -177,13 +177,9 @@ Vector<int> Container::get_allowed_size_flags_vertical() const {
|
||||
|
||||
void Container::_notification(int p_what) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
pending_sort = false;
|
||||
queue_sort();
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_RESIZED:
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
case NOTIFICATION_THEME_CHANGED:
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
queue_sort();
|
||||
} break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user