mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Replace Array return types with TypedArray 3
This commit is contained in:
@@ -748,10 +748,10 @@ int TreeItem::get_child_count() {
|
||||
return children_cache.size();
|
||||
}
|
||||
|
||||
Array TreeItem::get_children() {
|
||||
TypedArray<TreeItem> TreeItem::get_children() {
|
||||
// Don't need to explicitly create children cache, because get_child_count creates it.
|
||||
int size = get_child_count();
|
||||
Array arr;
|
||||
TypedArray<TreeItem> arr;
|
||||
arr.resize(size);
|
||||
for (int i = 0; i < size; i++) {
|
||||
arr[i] = children_cache[i];
|
||||
|
||||
Reference in New Issue
Block a user