You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
AssetLib: Only notify when unavailable in verbose mode
(cherry picked from commit dc86bce306)
This commit is contained in:
@@ -6958,12 +6958,10 @@ EditorNode::EditorNode() {
|
|||||||
ScriptTextEditor::register_editor(); //register one for text scripts
|
ScriptTextEditor::register_editor(); //register one for text scripts
|
||||||
TextEditor::register_editor();
|
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()) {
|
if (AssetLibraryEditorPlugin::is_available()) {
|
||||||
add_editor_plugin(memnew(AssetLibraryEditorPlugin(this)));
|
add_editor_plugin(memnew(AssetLibraryEditorPlugin(this)));
|
||||||
} else {
|
} 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
|
//add interface before adding plugins
|
||||||
|
|||||||
@@ -2604,7 +2604,7 @@ ProjectManager::ProjectManager() {
|
|||||||
tabs->add_child(asset_library);
|
tabs->add_child(asset_library);
|
||||||
asset_library->connect("install_asset", this, "_install_project");
|
asset_library->connect("install_asset", this, "_install_project");
|
||||||
} else {
|
} 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).");
|
||||||
}
|
}
|
||||||
|
|
||||||
HBoxContainer *settings_hb = memnew(HBoxContainer);
|
HBoxContainer *settings_hb = memnew(HBoxContainer);
|
||||||
|
|||||||
Reference in New Issue
Block a user