Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/icons.cc
| Show First 20 Lines • Show All 410 Lines • ▼ Show 20 Lines | for (int i = 0; i < NUM_ICON_SIZES; i++) { | ||||
| BKE_previewimg_ensure(*prv, i); | BKE_previewimg_ensure(*prv, i); | ||||
| /* Prevent auto-updates. */ | /* Prevent auto-updates. */ | ||||
| (*prv)->flag[i] |= PRV_USER_EDITED; | (*prv)->flag[i] |= PRV_USER_EDITED; | ||||
| } | } | ||||
| } | } | ||||
| bool BKE_previewimg_id_supports_jobs(const ID *id) | bool BKE_previewimg_id_supports_jobs(const ID *id) | ||||
| { | { | ||||
| return ELEM(GS(id->name), ID_OB, ID_MA, ID_TE, ID_LA, ID_WO, ID_IM, ID_BR); | return ELEM(GS(id->name), ID_OB, ID_MA, ID_TE, ID_LA, ID_WO, ID_IM, ID_BR, ID_GR); | ||||
| } | } | ||||
| void BKE_previewimg_deferred_release(PreviewImage *prv) | void BKE_previewimg_deferred_release(PreviewImage *prv) | ||||
| { | { | ||||
| if (prv) { | if (prv) { | ||||
| if (prv->tag & PRV_TAG_DEFFERED_RENDERING) { | if (prv->tag & PRV_TAG_DEFFERED_RENDERING) { | ||||
| /* We cannot delete the preview while it is being loaded in another thread... */ | /* We cannot delete the preview while it is being loaded in another thread... */ | ||||
| prv->tag |= PRV_TAG_DEFFERED_DELETE; | prv->tag |= PRV_TAG_DEFFERED_DELETE; | ||||
| ▲ Show 20 Lines • Show All 583 Lines • Show Last 20 Lines | |||||