Implement uid Resource references in VariantWriter
VariantWriter now writes the uid and the path into Resource() references. This change will affect ConfigFile, used for .import or project settings.
This commit is contained in:
parent
42c7f14422
commit
f948ab5366
2 changed files with 65 additions and 12 deletions
|
|
@ -565,6 +565,7 @@ Ref<Resource> ResourceLoader::load(const String &p_path, const String &p_type_hi
|
|||
|
||||
Ref<ResourceLoader::LoadToken> ResourceLoader::_load_start(const String &p_path, const String &p_type_hint, LoadThreadMode p_thread_mode, ResourceFormatLoader::CacheMode p_cache_mode, bool p_for_user) {
|
||||
String local_path = _validate_local_path(p_path);
|
||||
ERR_FAIL_COND_V(local_path.is_empty(), Ref<ResourceLoader::LoadToken>());
|
||||
|
||||
bool ignoring_cache = p_cache_mode == ResourceFormatLoader::CACHE_MODE_IGNORE || p_cache_mode == ResourceFormatLoader::CACHE_MODE_IGNORE_DEEP;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue