Merge pull request #50768 from Calinou/editor-asset-library-urls-clarify

Clarify the purpose of the default asset library URLs in the editor
This commit is contained in:
Rémi Verschelde 2021-07-23 15:40:01 +02:00 committed by GitHub
commit 8cddd3b2c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -603,8 +603,7 @@ void EditorAssetLibrary::_notification(int p_what) {
void EditorAssetLibrary::_update_repository_options() {
Dictionary default_urls;
default_urls["godotengine.org"] = "https://godotengine.org/asset-library/api";
default_urls["localhost"] = "http://127.0.0.1/asset-library/api";
default_urls["godotengine.org (Official)"] = "https://godotengine.org/asset-library/api";
Dictionary available_urls = _EDITOR_DEF("asset_library/available_urls", default_urls, true);
repository->clear();
Array keys = available_urls.keys();