1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Dictionary::get_key_list use LocalVector instead of List.

This commit is contained in:
Yufeng Ying
2025-03-14 03:04:25 +08:00
parent 4248411baf
commit f7e4987d0e
13 changed files with 33 additions and 44 deletions

View File

@@ -3702,10 +3702,8 @@ void EditorNode::replace_resources_in_object(Object *p_object, const Vector<Ref<
} break;
case Variant::DICTIONARY: {
Dictionary d = p_object->get(E.name);
List<Variant> keys;
bool dictionary_requires_updating = false;
d.get_key_list(&keys);
for (const Variant &F : keys) {
for (const Variant &F : d.get_key_list()) {
Variant v = d[F];
Ref<Resource> res = v;