mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Button object used after pressed is called
- by queueing for deletion node can call own cleanup methods
This commit is contained in:
@@ -312,7 +312,8 @@ void EditorPropertyArray::update_property() {
|
||||
} else {
|
||||
//bye bye children of the box
|
||||
while (vbox->get_child_count() > 2) {
|
||||
memdelete(vbox->get_child(2));
|
||||
vbox->get_child(2)->queue_delete(); // button still needed after pressed is called
|
||||
vbox->remove_child(vbox->get_child(2));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user