Defer clearing of ResourceUID cache and silence warnings

This commit is contained in:
kobewi 2022-10-09 13:52:04 +02:00
parent 104af08e9d
commit 14b82c36a2
3 changed files with 15 additions and 1 deletions

View file

@ -2422,7 +2422,7 @@ EditorFileSystem::EditorFileSystem() {
scan_total = 0;
update_script_classes_queued.clear();
ResourceUID::get_singleton()->clear(); //will be updated on scan
MessageQueue::get_singleton()->push_callable(callable_mp(ResourceUID::get_singleton(), &ResourceUID::clear)); // Will be updated on scan.
ResourceSaver::set_get_resource_id_for_path(_resource_saver_get_resource_id_for_path);
}