Fixed a crash in scenario where SSL is not available.
This commit is contained in:
parent
1403fa18a9
commit
b3cf4c73fc
1 changed files with 1 additions and 4 deletions
|
@ -1126,10 +1126,10 @@ ProjectManager::ProjectManager() {
|
|||
|
||||
|
||||
if (StreamPeerSSL::is_available()) {
|
||||
|
||||
asset_library = memnew( EditorAssetLibrary(true) );
|
||||
asset_library->set_name("Templates");
|
||||
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.");
|
||||
}
|
||||
|
@ -1163,9 +1163,6 @@ ProjectManager::ProjectManager() {
|
|||
|
||||
gui_base->add_child(multi_run_ask);
|
||||
|
||||
|
||||
asset_library->connect("install_asset",this,"_install_project");
|
||||
|
||||
OS::get_singleton()->set_low_processor_usage_mode(true);
|
||||
|
||||
npdialog = memnew( NewProjectDialog );
|
||||
|
|
Loading…
Reference in a new issue