From 0225c4635da5156e71be4f583a03efcb416a24dc Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Mon, 3 Feb 2025 16:47:46 +0100 Subject: [PATCH] Cleanup: Remove redundant asset loading icon handling Since 1f88645728 the loading icon is managed by the UI code, no need to explicitly set it here. --- source/blender/editors/asset/intern/asset_ui_utils.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/source/blender/editors/asset/intern/asset_ui_utils.cc b/source/blender/editors/asset/intern/asset_ui_utils.cc index e387cf871bf..e6bfe6cdc80 100644 --- a/source/blender/editors/asset/intern/asset_ui_utils.cc +++ b/source/blender/editors/asset/intern/asset_ui_utils.cc @@ -43,11 +43,6 @@ std::string asset_tooltip(const asset_system::AssetRepresentation &asset, const BIFIconID asset_preview_icon_id(const asset_system::AssetRepresentation &asset) { if (const PreviewImage *preview = asset.get_preview()) { - if (!BKE_previewimg_is_finished(preview, ICON_SIZE_PREVIEW)) { - /* Loading icon. */ - return ICON_TEMP; - } - if (!BKE_previewimg_is_invalid(preview)) { return preview->runtime->icon_id; }