From b7b9add385731c286dfcc013148a5893dc83f19e Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Thu, 19 Jun 2025 18:41:35 +0200 Subject: [PATCH] UI: actually return an icon for shapekeys in UI_icon_from_idcode `UI_icon_from_idcode` is used e.g. from the Action Editor to indicate an Action's Slot Type (and without the icon it is kinda hard to tell what the slot is suited for...) Before ![image.png](/attachments/de26790d-d7c1-4eb0-b48e-245ff201f6bf) After ![image.png](/attachments/64f2e486-8880-424a-b793-b66503cf1087) Discovered while investigating #140618 Pull Request: https://projects.blender.org/blender/blender/pulls/140658 --- source/blender/editors/interface/interface_icons.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/interface/interface_icons.cc b/source/blender/editors/interface/interface_icons.cc index 62de9c4378e..a3f2f6d4f1f 100644 --- a/source/blender/editors/interface/interface_icons.cc +++ b/source/blender/editors/interface/interface_icons.cc @@ -2091,11 +2091,12 @@ int UI_icon_from_idcode(const int idcode) return ICON_WORKSPACE; case ID_GP: return ICON_OUTLINER_DATA_GREASEPENCIL; + case ID_KE: + return ICON_SHAPEKEY_DATA; /* No icons for these ID-types. */ case ID_LI: case ID_IP: - case ID_KE: case ID_SCR: case ID_WM: break;