Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/icons.cc
| Show First 20 Lines • Show All 661 Lines • ▼ Show 20 Lines | for (int i = 0; i < NUM_ICON_SIZES; i++) { | ||||
| /* For now consider previews read from file as finished to not confuse File Browser preview | /* For now consider previews read from file as finished to not confuse File Browser preview | ||||
| * loading. That could be smarter and check if there's a preview job running instead. | * loading. That could be smarter and check if there's a preview job running instead. | ||||
| * If the preview is tagged as changed, it needs to be updated anyway, so don't remove the tag. | * If the preview is tagged as changed, it needs to be updated anyway, so don't remove the tag. | ||||
| */ | */ | ||||
| if ((prv->flag[i] & PRV_CHANGED) == 0) { | if ((prv->flag[i] & PRV_CHANGED) == 0) { | ||||
| BKE_previewimg_finish(prv, i); | BKE_previewimg_finish(prv, i); | ||||
| } | } | ||||
| else { | else { | ||||
| /* Only for old files that didn't write the flag . */ | /* Only for old files that didn't write the flag. */ | ||||
| prv->flag[i] |= PRV_UNFINISHED; | prv->flag[i] |= PRV_UNFINISHED; | ||||
| } | } | ||||
| } | } | ||||
| prv->icon_id = 0; | prv->icon_id = 0; | ||||
| prv->tag = 0; | prv->tag = 0; | ||||
| } | } | ||||
| void BKE_icon_changed(const int icon_id) | void BKE_icon_changed(const int icon_id) | ||||
| ▲ Show 20 Lines • Show All 386 Lines • Show Last 20 Lines | |||||