|
Blender
V2.93
|
#include "MEM_guardedalloc.h"#include "DNA_cachefile_types.h"#include "DNA_space_types.h"#include "BLI_path_util.h"#include "BLI_string.h"#include "BKE_cachefile.h"#include "BKE_context.h"#include "BKE_lib_id.h"#include "BKE_main.h"#include "BKE_report.h"#include "RNA_access.h"#include "DEG_depsgraph.h"#include "UI_interface.h"#include "WM_api.h"#include "WM_types.h"#include "io_cache.h"Go to the source code of this file.
Functions | |
| static void | cachefile_init (bContext *C, wmOperator *op) |
| static int | cachefile_open_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | open_cancel (bContext *UNUSED(C), wmOperator *op) |
| static int | cachefile_open_exec (bContext *C, wmOperator *op) |
| void | CACHEFILE_OT_open (wmOperatorType *ot) |
| static int | cachefile_reload_exec (bContext *C, wmOperator *UNUSED(op)) |
| void | CACHEFILE_OT_reload (wmOperatorType *ot) |
/
Definition in file io_cache.c.
|
static |
Definition at line 49 of file io_cache.c.
References C, wmOperator::customdata, MEM_callocN, PropertyPointerRNA::prop, PropertyPointerRNA::ptr, and UI_context_active_but_prop_get_templateID().
Referenced by cachefile_open_invoke().
|
static |
Definition at line 83 of file io_cache.c.
References BKE_libblock_alloc(), BKE_report(), BLI_path_basename(), BLI_strncpy(), C, CTX_data_main(), wmOperator::customdata, DEG_id_tag_update(), FILE_MAX, CacheFile::filepath, CacheFile::id, ID_CF, ID_RECALC_COPY_ON_WRITE, id_us_min(), MEM_freeN, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, PropertyPointerRNA::prop, wmOperator::ptr, PropertyPointerRNA::ptr, wmOperator::reports, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), RNA_string_get(), RNA_struct_property_is_set(), and RPT_ERROR.
Referenced by CACHEFILE_OT_open().
|
static |
Definition at line 57 of file io_cache.c.
References BKE_main_blendfile_path(), BLI_path_extension_replace(), BLI_strncpy(), C, cachefile_init(), CTX_data_main(), FILE_MAX, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_string_set(), RNA_struct_property_is_set(), UNUSED_VARS, and WM_event_add_fileselect().
Referenced by CACHEFILE_OT_open().
| void CACHEFILE_OT_open | ( | wmOperatorType * | ot | ) |
Definition at line 120 of file io_cache.c.
References cachefile_open_exec(), cachefile_open_invoke(), wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, FILE_BLENDER, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_TYPE_ALEMBIC, FILE_TYPE_FOLDER, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, open_cancel(), ot, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by ED_operatortypes_io().
| void CACHEFILE_OT_reload | ( | wmOperatorType * | ot | ) |
Definition at line 155 of file io_cache.c.
References cachefile_reload_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_io().
|
static |
Definition at line 141 of file io_cache.c.
References BKE_cachefile_reload(), C, CTX_data_edit_cachefile(), CTX_data_ensure_evaluated_depsgraph(), depsgraph, OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by CACHEFILE_OT_reload().
|
static |
Definition at line 77 of file io_cache.c.
References wmOperator::customdata, MEM_freeN, and NULL.
Referenced by CACHEFILE_OT_open().