From cec95a33052686bbed9d03ea45240fed14bd398e Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Wed, 20 May 2026 15:21:32 -0300 Subject: [PATCH] Fix template assets not being exclusive to the project manager --- editor/asset_library/asset_library_editor_plugin.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/editor/asset_library/asset_library_editor_plugin.cpp b/editor/asset_library/asset_library_editor_plugin.cpp index 8ad3535fd4..48752921f2 100644 --- a/editor/asset_library/asset_library_editor_plugin.cpp +++ b/editor/asset_library/asset_library_editor_plugin.cpp @@ -1435,22 +1435,19 @@ void EditorAssetLibrary::_search(int p_page) { String search = filter->get_text().to_lower(); String args = "?query=" + search.uri_encode(); - if (templates_only) { - args += "%23template"; - } else if (categories->get_selected() > 0) { - args = args.replace("%23template", ""); // Bad user, no templates in projects! + if (categories->get_selected() > 0) { args += "%23" + (String)categories->get_item_metadata(categories->get_selected()); } args += "&require_release=true"; + args += "&type=" + String(templates_only ? "1" : "0"); + args += "&sort=" + String(sort_key[sort->get_selected()]); args += "&compatibility=" + itos(GODOT_VERSION_MAJOR) + "." + itos(GODOT_VERSION_MINOR); if (GODOT_VERSION_PATCH > 0) { args += "." + itos(GODOT_VERSION_PATCH); } - args += String() + "&sort=" + sort_key[sort->get_selected()]; - int license_count = licenses->get_item_count(); if (license_count > 0) { PopupMenu *popup = licenses->get_popup();