Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/thumbs_blend.c
| Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | if (blen_group && blen_id) { | ||||
| if (libfiledata == NULL) { | if (libfiledata == NULL) { | ||||
| return ima; | return ima; | ||||
| } | } | ||||
| /* Note: we should handle all previews for a same group at once, would avoid reopening | /* Note: we should handle all previews for a same group at once, would avoid reopening | ||||
| * `.blend` file for each and every ID. However, this adds some complexity, | * `.blend` file for each and every ID. However, this adds some complexity, | ||||
| * so keep it for later. */ | * so keep it for later. */ | ||||
| names = BLO_blendhandle_get_datablock_names(libfiledata, idcode, &nnames); | names = BLO_blendhandle_get_datablock_names(libfiledata, idcode, false, &nnames); | ||||
| previews = BLO_blendhandle_get_previews(libfiledata, idcode, &nprevs); | previews = BLO_blendhandle_get_previews(libfiledata, idcode, &nprevs); | ||||
| BLO_blendhandle_close(libfiledata); | BLO_blendhandle_close(libfiledata); | ||||
| if (!previews || (nnames != nprevs)) { | if (!previews || (nnames != nprevs)) { | ||||
| if (previews != 0) { | if (previews != 0) { | ||||
| /* No previews at all is not a bug! */ | /* No previews at all is not a bug! */ | ||||
| printf("%s: error, found %d items, %d previews\n", __func__, nnames, nprevs); | printf("%s: error, found %d items, %d previews\n", __func__, nnames, nprevs); | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||