Fixed a crash in scenario where SSL is not available.

This commit is contained in:
vamsi 2016-07-13 10:22:56 +05:30 committed by Rémi Verschelde
parent 1403fa18a9
commit b3cf4c73fc

View file

@ -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 );