You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Disable asset library compilation if no openssl exists
This commit is contained in:
@@ -6381,7 +6381,11 @@ EditorNode::EditorNode() {
|
|||||||
add_editor_plugin( memnew( CanvasItemEditorPlugin(this) ) );
|
add_editor_plugin( memnew( CanvasItemEditorPlugin(this) ) );
|
||||||
add_editor_plugin( memnew( SpatialEditorPlugin(this) ) );
|
add_editor_plugin( memnew( SpatialEditorPlugin(this) ) );
|
||||||
add_editor_plugin( memnew( ScriptEditorPlugin(this) ) );
|
add_editor_plugin( memnew( ScriptEditorPlugin(this) ) );
|
||||||
|
#ifdef OPENSSL_ENABLED
|
||||||
add_editor_plugin( memnew( AssetLibraryEditorPlugin(this) ) );
|
add_editor_plugin( memnew( AssetLibraryEditorPlugin(this) ) );
|
||||||
|
#else
|
||||||
|
#warning Asset Library will not compile without SSL
|
||||||
|
#endif
|
||||||
|
|
||||||
//more visually meaningful to have this later
|
//more visually meaningful to have this later
|
||||||
raise_bottom_panel_item(AnimationPlayerEditor::singleton);
|
raise_bottom_panel_item(AnimationPlayerEditor::singleton);
|
||||||
|
|||||||
@@ -986,11 +986,15 @@ ProjectManager::ProjectManager() {
|
|||||||
tree_vb->add_spacer();
|
tree_vb->add_spacer();
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef OPENSSL_ENABLED
|
||||||
|
|
||||||
asset_library = memnew( EditorAssetLibrary(true) );
|
asset_library = memnew( EditorAssetLibrary(true) );
|
||||||
asset_library->set_name("Templates");
|
asset_library->set_name("Templates");
|
||||||
tabs->add_child(asset_library);
|
tabs->add_child(asset_library);
|
||||||
|
|
||||||
|
#else
|
||||||
|
#warning Asset Library will not compile without SSL
|
||||||
|
#endif
|
||||||
|
|
||||||
CenterContainer *cc = memnew( CenterContainer );
|
CenterContainer *cc = memnew( CenterContainer );
|
||||||
Button * cancel = memnew( Button );
|
Button * cancel = memnew( Button );
|
||||||
|
|||||||
Reference in New Issue
Block a user