46 op->
customdata = pprop = MEM_new<PropertyPointerRNA>(
"OpenPropertyPointerRNA");
98 if (pprop->
prop !=
nullptr) {
117 ot->
name =
"Open Cache File";
140 if (cache_file ==
nullptr) {
151 ot->
name =
"Refresh Archive";
152 ot->
description =
"Update objects paths list with new data from the archive";
192 if (cache_file ==
nullptr) {
201 if (layer ==
nullptr) {
215 ot->
idname =
"CACHEFILE_OT_layer_add";
236 if (cache_file ==
nullptr) {
251 ot->
description =
"Remove an override layer from the archive";
252 ot->
idname =
"CACHEFILE_OT_layer_remove";
267 if (cache_file ==
nullptr) {
273 if (layer ==
nullptr) {
292 {-1,
"UP", 0,
"Up",
""},
293 {1,
"DOWN", 0,
"Down",
""},
294 {0,
nullptr, 0,
nullptr,
nullptr},
299 "Move layer in the list, layers further down the list will overwrite data from the layers "
301 ot->
idname =
"CACHEFILE_OT_layer_move";
314 "Direction to move the active vertex group towards");
void BKE_cachefile_remove_layer(CacheFile *cache_file, CacheFileLayer *layer)
CacheFileLayer * BKE_cachefile_get_active_layer(CacheFile *cache_file)
CacheFileLayer * BKE_cachefile_add_layer(CacheFile *cache_file, const char filepath[1024])
void BKE_cachefile_reload(Depsgraph *depsgraph, CacheFile *cache_file)
CacheFile * CTX_data_edit_cachefile(const bContext *C)
Depsgraph * CTX_data_ensure_evaluated_depsgraph(const bContext *C)
Main * CTX_data_main(const bContext *C)
void * BKE_libblock_alloc(Main *bmain, short type, const char *name, int flag) ATTR_WARN_UNUSED_RESULT
const char * BKE_main_blendfile_path(const Main *bmain) ATTR_NONNULL()
void BKE_report(ReportList *reports, eReportType type, const char *message)
void void void bool BLI_listbase_link_move(ListBase *listbase, void *vlink, int step) ATTR_NONNULL()
int BLI_findindex(const struct ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void void void const char * BLI_path_basename(const char *path) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
void void BLI_path_split_dir_part(const char *filepath, char *dir, size_t dir_maxncpy) ATTR_NONNULL(1
#define STRNCPY(dst, src)
void DEG_id_tag_update(ID *id, unsigned int flags)
Read Guarded memory(de)allocation.
void UI_context_active_but_prop_get_templateID(const bContext *C, PointerRNA *r_ptr, PropertyRNA **r_prop)
const Depsgraph * depsgraph
static void open_cancel(bContext *, wmOperator *op)
static int cachefile_open_invoke(bContext *C, wmOperator *op, const wmEvent *)
static void reload_cachefile(bContext *C, CacheFile *cache_file)
void CACHEFILE_OT_open(wmOperatorType *ot)
static int cachefile_layer_move_exec(bContext *C, wmOperator *op)
void CACHEFILE_OT_layer_remove(wmOperatorType *ot)
static int cachefile_open_exec(bContext *C, wmOperator *op)
void CACHEFILE_OT_layer_move(wmOperatorType *ot)
static void cachefile_init(bContext *C, wmOperator *op)
void CACHEFILE_OT_layer_add(wmOperatorType *ot)
static int cachefile_reload_exec(bContext *C, wmOperator *)
static int cachefile_layer_remove_exec(bContext *C, wmOperator *)
static int cachefile_layer_add_exec(bContext *C, wmOperator *op)
void CACHEFILE_OT_reload(wmOperatorType *ot)
static int cachefile_layer_open_invoke(bContext *C, wmOperator *op, const wmEvent *)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
void RNA_property_pointer_set(PointerRNA *ptr, PropertyRNA *prop, PointerRNA ptr_value, ReportList *reports)
void RNA_property_update(bContext *C, PointerRNA *ptr, PropertyRNA *prop)
void RNA_string_get(PointerRNA *ptr, const char *name, char *value)
bool RNA_struct_property_is_set(PointerRNA *ptr, const char *identifier)
int RNA_enum_get(PointerRNA *ptr, const char *name)
PointerRNA RNA_id_pointer_create(ID *id)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
int(* invoke)(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
int(* exec)(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
void(* cancel)(bContext *C, wmOperator *op)
struct ReportList * reports
void WM_event_add_fileselect(bContext *C, wmOperator *op)
void WM_report(eReportType type, const char *message)
void WM_main_add_notifier(uint type, void *reference)
void WM_operator_properties_filesel(wmOperatorType *ot, const int filter, const short type, const eFileSel_Action action, const eFileSel_Flag flag, const short display, const short sort)