[Core] Add iteration support to Array
This commit is contained in:
parent
1f0f81049f
commit
64146cb7f3
15 changed files with 251 additions and 73 deletions
|
|
@ -1330,8 +1330,8 @@ void ProjectSettings::load_scene_groups_cache() {
|
|||
for (const String &E : scene_paths) {
|
||||
Array scene_groups = cf->get_value(E, "groups", Array());
|
||||
HashSet<StringName> cache;
|
||||
for (int i = 0; i < scene_groups.size(); ++i) {
|
||||
cache.insert(scene_groups[i]);
|
||||
for (const Variant &scene_group : scene_groups) {
|
||||
cache.insert(scene_group);
|
||||
}
|
||||
add_scene_groups_cache(E, cache);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue