mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[Export] Respect icon/splash screen import settings.
This commit is contained in:
parent
9ee1873ae1
commit
b3f7c8f5d3
8 changed files with 69 additions and 44 deletions
|
@ -1883,10 +1883,8 @@ Error EditorExportPlatformMacOS::export_project(const Ref<EditorExportPreset> &p
|
|||
icon->get_buffer(&data.write[0], icon->get_length());
|
||||
}
|
||||
} else {
|
||||
Ref<Image> icon;
|
||||
icon.instantiate();
|
||||
err = ImageLoader::load_image(icon_path, icon);
|
||||
if (err == OK && !icon->is_empty()) {
|
||||
Ref<Image> icon = _load_icon_or_splash_image(icon_path, &err);
|
||||
if (err == OK && icon.is_valid() && !icon->is_empty()) {
|
||||
_make_icon(p_preset, icon, data);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue