Fixup #62318 after ResourceCache changes

This commit is contained in:
Rémi Verschelde 2022-06-27 14:02:21 +02:00
parent 09c584990c
commit bbca1d6530

View file

@ -1654,7 +1654,7 @@ int EditorNode::_save_external_resources() {
}
for (const String &E : edited_resources) {
Ref<Resource> res = Ref<Resource>(ResourceCache::get(E));
Ref<Resource> res = ResourceCache::get_ref(E);
if (!res.is_valid()) {
continue; // Maybe it was erased in a thread, who knows.
}