We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce3ebac + d160d71 commit 94d7a54Copy full SHA for 94d7a54
core/io/file_access.cpp
@@ -258,7 +258,12 @@ String FileAccess::fix_path(const String &p_path) const {
258
case ACCESS_RESOURCES: {
259
if (ProjectSettings::get_singleton()) {
260
if (r_path.begins_with("uid://")) {
261
- r_path = ResourceUID::uid_to_path(r_path);
+ ResourceUID::ID uid = ResourceUID::get_singleton()->text_to_id(r_path);
262
+ if (ResourceUID::get_singleton()->has_id(uid)) {
263
+ r_path = ResourceUID::get_singleton()->get_id_path(uid);
264
+ } else {
265
+ r_path.clear();
266
+ }
267
}
268
269
if (r_path.begins_with("res://")) {
0 commit comments