Add container automatic update when moving a child node
This commit is contained in:
@ -52,6 +52,14 @@ void Container::add_child_notify(Node *p_child) {
|
||||
|
||||
}
|
||||
|
||||
void Container::move_child_notify(Node *p_child) {
|
||||
|
||||
if (!p_child->cast_to<Control>())
|
||||
return;
|
||||
|
||||
queue_sort();
|
||||
}
|
||||
|
||||
void Container::remove_child_notify(Node *p_child) {
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user