1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Do not use Dictionary::keys() for Dictionary iteration.

This commit is contained in:
Yufeng Ying
2025-03-21 20:06:01 +08:00
parent 4b36c0491e
commit 8ae16699c5
18 changed files with 78 additions and 102 deletions

View File

@@ -291,9 +291,8 @@ void ScriptEditorDebugger::_remote_object_selected(ObjectID p_id) {
}
void ScriptEditorDebugger::_remote_objects_edited(const String &p_prop, const TypedDictionary<uint64_t, Variant> &p_values, const String &p_field) {
const Array &ids = p_values.keys();
for (uint64_t id : ids) {
update_remote_object(ObjectID(id), p_prop, p_values[id], p_field);
for (const KeyValue<Variant, Variant> &kv : p_values) {
update_remote_object(ObjectID(static_cast<uint64_t>(kv.key)), p_prop, kv.value, p_field);
}
request_remote_objects(p_values.keys(), false);
}