diff --git a/release/datafiles/icons_svg/not_found.svg b/release/datafiles/icons_svg/not_found.svg
index 1b8290c586b..7192ff25cf3 100644
--- a/release/datafiles/icons_svg/not_found.svg
+++ b/release/datafiles/icons_svg/not_found.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/source/blender/editors/interface/interface_icons.cc b/source/blender/editors/interface/interface_icons.cc
index 78183b6d2fe..b3e08a4b35a 100644
--- a/source/blender/editors/interface/interface_icons.cc
+++ b/source/blender/editors/interface/interface_icons.cc
@@ -1502,7 +1502,8 @@ static void icon_draw_size(float x,
if (G.debug & G_DEBUG) {
printf("%s: Internal error, no icon for icon ID: %d\n", __func__, icon_id);
}
- return;
+ icon_id = ICON_NOT_FOUND;
+ icon = BKE_icon_get(icon_id);
}
if (icon->obj_type != ICON_DATA_STUDIOLIGHT) {
@@ -1575,7 +1576,10 @@ static void icon_draw_size(float x,
0.3f) :
0.0f;
float color[4];
- if (mono_rgba) {
+ if (icon_id == ICON_NOT_FOUND) {
+ UI_GetThemeColor4fv(TH_ERROR, color);
+ }
+ else if (mono_rgba) {
rgba_uchar_to_float(color, mono_rgba);
}
else {