[Export] Use image loader directly to avoid "resource as image file" errors.
This commit is contained in:
parent
dce1602eda
commit
908bef8eee
3 changed files with 13 additions and 7 deletions
|
|
@ -666,7 +666,7 @@ Error EditorExportPlatformIOS::_export_loading_screen_file(const Ref<EditorExpor
|
|||
Ref<Image> image;
|
||||
String image_path = p_dest_dir.path_join("splash@2x.png");
|
||||
image.instantiate();
|
||||
Error err = image->load(custom_launch_image_2x);
|
||||
Error err = ImageLoader::load_image(custom_launch_image_2x, image);
|
||||
|
||||
if (err) {
|
||||
image.unref();
|
||||
|
|
@ -680,7 +680,7 @@ Error EditorExportPlatformIOS::_export_loading_screen_file(const Ref<EditorExpor
|
|||
image.unref();
|
||||
image_path = p_dest_dir.path_join("splash@3x.png");
|
||||
image.instantiate();
|
||||
err = image->load(custom_launch_image_3x);
|
||||
err = ImageLoader::load_image(custom_launch_image_3x, image);
|
||||
|
||||
if (err) {
|
||||
image.unref();
|
||||
|
|
@ -697,7 +697,7 @@ Error EditorExportPlatformIOS::_export_loading_screen_file(const Ref<EditorExpor
|
|||
|
||||
if (!splash_path.is_empty()) {
|
||||
splash.instantiate();
|
||||
const Error err = splash->load(splash_path);
|
||||
const Error err = ImageLoader::load_image(splash_path, splash);
|
||||
if (err) {
|
||||
splash.unref();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue