mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Change RID_Owner::get_owned_list.
This commit is contained in:
parent
2d3bdcac35
commit
1a70a06a43
11 changed files with 74 additions and 102 deletions
|
|
@ -94,11 +94,12 @@ void GodotNavigationServer3D::add_command(SetCommand3D *command) {
|
|||
|
||||
TypedArray<RID> GodotNavigationServer3D::get_maps() const {
|
||||
TypedArray<RID> all_map_rids;
|
||||
List<RID> maps_owned;
|
||||
map_owner.get_owned_list(&maps_owned);
|
||||
if (maps_owned.size()) {
|
||||
for (const RID &E : maps_owned) {
|
||||
all_map_rids.push_back(E);
|
||||
LocalVector<RID> maps_owned = map_owner.get_owned_list();
|
||||
uint32_t map_count = maps_owned.size();
|
||||
if (map_count) {
|
||||
all_map_rids.resize(map_count);
|
||||
for (uint32_t i = 0; i < map_count; i++) {
|
||||
all_map_rids[i] = maps_owned[i];
|
||||
}
|
||||
}
|
||||
return all_map_rids;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue