You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Fix crash on asset lib install
This is not the perfect solution, but fixes the crash and avoid a dependency on EditorNode.
This commit is contained in:
@@ -600,7 +600,8 @@ void EditorAssetLibrary::_install_asset() {
|
||||
EditorAssetLibraryItemDownload *d = downloads_hb->get_child(i)->cast_to<EditorAssetLibraryItemDownload>();
|
||||
if (d && d->get_asset_id() == description->get_asset_id()) {
|
||||
|
||||
EditorNode::get_singleton()->show_warning("Download for this asset is already in progress!");
|
||||
if (EditorNode::get_singleton() != NULL)
|
||||
EditorNode::get_singleton()->show_warning("Download for this asset is already in progress!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user