1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Support uid:// in more places

This commit is contained in:
kobewi
2024-11-15 16:14:38 +01:00
parent 5efd124ca1
commit 3b6705a641
5 changed files with 19 additions and 8 deletions

View File

@@ -2617,7 +2617,7 @@ Error Image::load(const String &p_path) {
WARN_PRINT(vformat("Loaded resource as image file, this will not work on export: '%s'. Instead, import the image file as an Image resource and load it normally as a resource.", path));
}
#endif
return ImageLoader::load_image(ResourceUID::ensure_path(p_path), this);
return ImageLoader::load_image(path, this);
}
Ref<Image> Image::load_from_file(const String &p_path) {