Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/io/io_cache.c
| Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | |||||
| static int cachefile_reload_exec(bContext *C, wmOperator *UNUSED(op)) | static int cachefile_reload_exec(bContext *C, wmOperator *UNUSED(op)) | ||||
| { | { | ||||
| CacheFile *cache_file = CTX_data_edit_cachefile(C); | CacheFile *cache_file = CTX_data_edit_cachefile(C); | ||||
| if (!cache_file) { | if (!cache_file) { | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| } | } | ||||
| Depsgraph *depsgraph = CTX_data_depsgraph(C); | Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C); | ||||
| BKE_cachefile_reload(depsgraph, cache_file); | BKE_cachefile_reload(depsgraph, cache_file); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| void CACHEFILE_OT_reload(wmOperatorType *ot) | void CACHEFILE_OT_reload(wmOperatorType *ot) | ||||
| { | { | ||||
| ot->name = "Refresh Archive"; | ot->name = "Refresh Archive"; | ||||
| Show All 9 Lines | |||||