Merge pull request #62839 from akien-mga/assetlib-unavailable-verbose

This commit is contained in:
Rémi Verschelde 2022-07-08 16:36:45 +02:00 committed by GitHub
commit 787fd7e4d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -7056,12 +7056,10 @@ EditorNode::EditorNode() {
ScriptTextEditor::register_editor(); // Register one for text scripts.
TextEditor::register_editor();
// Asset Library can't work on Web editor for now as most assets are sourced
// directly from GitHub which does not set CORS.
if (AssetLibraryEditorPlugin::is_available()) {
add_editor_plugin(memnew(AssetLibraryEditorPlugin));
} else {
WARN_PRINT("Asset Library not available, as it requires SSL to work.");
print_verbose("Asset Library not available (due to using Web editor, or SSL support disabled).");
}
// Add interface before adding plugins.

View file

@ -2797,7 +2797,7 @@ ProjectManager::ProjectManager() {
tabs->add_child(asset_library);
asset_library->connect("install_asset", callable_mp(this, &ProjectManager::_install_project));
} else {
WARN_PRINT("Asset Library not available, as it requires SSL to work.");
print_verbose("Asset Library not available (due to using Web editor, or SSL support disabled).");
}
{