From c1954f984611e8bea8e2ab8ae0302e15797e50a3 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Sat, 23 Sep 2023 10:48:43 -0400 Subject: [PATCH] UI: Use "unassigned" icon for assets in modifier and node add menus Use the same icon as in the asset browser "unassigned" item for unassigned node group assets exposed in the modifier or node add menus, helping to make the connection to the asset browser. The downside is potentially drawing unnecessary attention to these categories, but ideally they won't exist for most users anyway (since the assets should be in proper catalogs). --- source/blender/editors/object/add_modifier_assets.cc | 5 ++++- source/blender/editors/space_node/add_menu_assets.cc | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/object/add_modifier_assets.cc b/source/blender/editors/object/add_modifier_assets.cc index 5ab3c995dd1..62e381c21ad 100644 --- a/source/blender/editors/object/add_modifier_assets.cc +++ b/source/blender/editors/object/add_modifier_assets.cc @@ -195,7 +195,10 @@ static void root_catalogs_draw(const bContext *C, Menu *menu) if (!tree.unassigned_assets.is_empty()) { uiItemS(layout); - uiItemM(layout, "OBJECT_MT_add_modifier_unassigned_assets", IFACE_("Unassigned"), ICON_NONE); + uiItemM(layout, + "OBJECT_MT_add_modifier_unassigned_assets", + IFACE_("Unassigned"), + ICON_FILE_HIDDEN); } } diff --git a/source/blender/editors/space_node/add_menu_assets.cc b/source/blender/editors/space_node/add_menu_assets.cc index bdf86257f64..28d91f36fab 100644 --- a/source/blender/editors/space_node/add_menu_assets.cc +++ b/source/blender/editors/space_node/add_menu_assets.cc @@ -216,7 +216,7 @@ static void add_root_catalogs_draw(const bContext *C, Menu *menu) if (!tree.unassigned_assets.is_empty()) { uiItemS(layout); - uiItemM(layout, "NODE_MT_node_add_unassigned_assets", IFACE_("Unassigned"), ICON_NONE); + uiItemM(layout, "NODE_MT_node_add_unassigned_assets", IFACE_("Unassigned"), ICON_FILE_HIDDEN); } }