浏览代码

AssetLib: Only notify when unavailable in verbose mode

(cherry picked from commit dc86bce306385f4298b4413dd8c284b11856f14b)
Rémi Verschelde 3 年之前
父节点
当前提交
875a0dba5a
共有 2 个文件被更改,包括 2 次插入4 次删除
  1. 1 3
      editor/editor_node.cpp
  2. 1 1
      editor/project_manager.cpp

+ 1 - 3
editor/editor_node.cpp

@@ -6958,12 +6958,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(this)));
 	} 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

+ 1 - 1
editor/project_manager.cpp

@@ -2604,7 +2604,7 @@ ProjectManager::ProjectManager() {
 		tabs->add_child(asset_library);
 		asset_library->connect("install_asset", this, "_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).");
 	}
 
 	HBoxContainer *settings_hb = memnew(HBoxContainer);