Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_operators.c
| Context not available. | |||||
| static void previews_id_ensure(bContext *C, Scene *scene, ID *id) | static void previews_id_ensure(bContext *C, Scene *scene, ID *id) | ||||
| { | { | ||||
| BLI_assert(ELEM(GS(id->name), ID_MA, ID_TE, ID_IM, ID_WO, ID_LA)); | BLI_assert(ELEM(GS(id->name), ID_MA, ID_TE, ID_IM, ID_MC, ID_WO, ID_LA)); | ||||
| /* Only preview non-library datablocks, lib ones do not pertain to this .blend file! | /* Only preview non-library datablocks, lib ones do not pertain to this .blend file! | ||||
| * Same goes for ID with no user. */ | * Same goes for ID with no user. */ | ||||
| Context not available. | |||||
| ID *id = *cb_data->id_pointer; | ID *id = *cb_data->id_pointer; | ||||
| if (id && (id->tag & LIB_TAG_DOIT)) { | if (id && (id->tag & LIB_TAG_DOIT)) { | ||||
| BLI_assert(ELEM(GS(id->name), ID_MA, ID_TE, ID_IM, ID_WO, ID_LA)); | BLI_assert(ELEM(GS(id->name), ID_MA, ID_TE, ID_IM, ID_MC, ID_WO, ID_LA)); | ||||
| previews_id_ensure(data->C, data->scene, id); | previews_id_ensure(data->C, data->scene, id); | ||||
| id->tag &= ~LIB_TAG_DOIT; | id->tag &= ~LIB_TAG_DOIT; | ||||
| } | } | ||||
| Context not available. | |||||