1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Improve handling of archives when installing assets

This commit is contained in:
Yuri Sizov
2023-09-08 20:01:26 +02:00
parent 8c1817f755
commit 639aba4ee1
3 changed files with 319 additions and 188 deletions

View File

@@ -480,7 +480,7 @@ void EditorAssetLibraryItemDownload::install() {
}
asset_installer->set_asset_name(title->get_text());
asset_installer->open(file, 1);
asset_installer->open_asset(file, true);
}
void EditorAssetLibraryItemDownload::_make_request() {
@@ -1377,9 +1377,9 @@ void EditorAssetLibrary::_asset_file_selected(const String &p_file) {
}
asset_installer = memnew(EditorAssetInstaller);
asset_installer->set_asset_name(p_file.get_basename());
asset_installer->set_asset_name(p_file);
add_child(asset_installer);
asset_installer->open(p_file);
asset_installer->open_asset(p_file);
}
void EditorAssetLibrary::_asset_open() {