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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user