You've already forked godot
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user