73 ot->
name =
"Pack Blender Libraries";
74 ot->
idname =
"FILE_OT_pack_libraries";
75 ot->
description =
"Pack all used Blender library files into the current .blend";
96 C, op,
"Unpack Blender Libraries - creates directories, all new paths should work");
102 ot->
name =
"Unpack Blender Libraries";
103 ot->
idname =
"FILE_OT_unpack_libraries";
104 ot->
description =
"Unpack all used Blender library files from this .blend file";
134 ot->
name =
"Automatically Pack Into .blend";
135 ot->
idname =
"FILE_OT_autopack_toggle";
136 ot->
description =
"Automatically pack all external files into the .blend file";
170 C, op,
"Some images are painted on. These changes will be lost. Continue?");
179 ot->
name =
"Pack All Into .blend";
181 ot->
description =
"Pack all used external files into the .blend";
194 {
PF_USE_LOCAL,
"USE_LOCAL", 0,
"Use files in current directory (create when necessary)",
""},
198 "Write files to current directory (overwrite existing files)",
203 "Use files in original location (create when necessary)",
208 "Write files to original location (overwrite existing files)",
210 {
PF_KEEP,
"KEEP", 0,
"Disable auto-pack, keep all packed files",
""},
211 {
PF_REMOVE,
"REMOVE", 0,
"Remove Pack",
""},
266 ot->
name =
"Unpack All Into Files";
268 ot->
description =
"Unpack all files packed into this .blend to external ones";
285 {
PF_USE_LOCAL,
"USE_LOCAL", 0,
"Use file from current directory (create when necessary)",
""},
289 "Write file to current directory (overwrite existing file)",
294 "Use file in original location (create when necessary)",
299 "Write file to original location (overwrite existing file)",
371 "Identifier type of ID block",
382 if (!
G.relbase_valid) {
398 ot->
name =
"Make All Paths Relative";
399 ot->
idname =
"FILE_OT_make_paths_relative";
400 ot->
description =
"Make all paths to external files relative to current .blend";
415 if (!
G.relbase_valid) {
431 ot->
name =
"Make All Paths Absolute";
432 ot->
idname =
"FILE_OT_make_paths_absolute";
433 ot->
description =
"Make all paths to external files absolute";
457 ot->
name =
"Report Missing Files";
458 ot->
idname =
"FILE_OT_report_missing_files";
492 ot->
name =
"Find Missing Files";
493 ot->
idname =
"FILE_OT_find_missing_files";
508 "Find all files in the search path (not just missing)");
528 #define INFO_TIMEOUT 5.0f
529 #define ERROR_TIMEOUT 10.0f
530 #define FLASH_TIMEOUT 1.0f
531 #define COLLAPSE_TIMEOUT 0.25f
532 #define BRIGHTEN_AMOUNT 0.1f
539 float target_col[4] = {0.0f, 0.0f, 0.0f, 0.0f};
540 float progress = 0.0, flash_progress = 0.0;
568 target_col[3] = 0.65f;
586 if (flash_progress <= 1.0f) {
610 ot->
name =
"Update Reports Display";
611 ot->
idname =
"INFO_OT_reports_display_update";
612 ot->
description =
"Update the display of reports in Blender UI (internal use)";
void BKE_bpath_relative_convert(struct Main *bmain, const char *basedir, struct ReportList *reports)
void BKE_bpath_missing_files_find(struct Main *bmain, const char *searchpath, struct ReportList *reports, const bool find_all)
void BKE_bpath_missing_files_check(struct Main *bmain, struct ReportList *reports)
void BKE_bpath_absolute_convert(struct Main *bmain, const char *basedir, struct ReportList *reports)
struct wmWindowManager * CTX_wm_manager(const bContext *C)
struct ReportList * CTX_wm_reports(const bContext *C)
struct Main * CTX_data_main(const bContext *C)
bool BKE_image_is_dirty(struct Image *image)
struct ID * BKE_libblock_find_name(struct Main *bmain, const short type, const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
const char * BKE_main_blendfile_path(const struct Main *bmain) ATTR_NONNULL()
void BKE_packedfile_id_unpack(struct Main *bmain, struct ID *id, struct ReportList *reports, enum ePF_FileStatus how)
void BKE_packedfile_pack_all(struct Main *bmain, struct ReportList *reports, bool verbose)
void BKE_packedfile_unpack_all(struct Main *bmain, struct ReportList *reports, enum ePF_FileStatus how)
void BKE_packedfile_pack_all_libraries(struct Main *bmain, struct ReportList *reports)
int BKE_packedfile_unpack_all_libraries(struct Main *bmain, struct ReportList *reports)
int BKE_packedfile_count_all(struct Main *bmain)
Report * BKE_reports_last_displayable(ReportList *reports)
void BKE_report(ReportList *reports, ReportType type, const char *message)
void interp_v4_v4v4(float r[4], const float a[4], const float b[4], const float t)
size_t BLI_snprintf(char *__restrict dst, size_t maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, const size_t maxncpy) ATTR_NONNULL()
#define CLAMP3(vec, b, c)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
Read Guarded memory(de)allocation.
void uiItemsFullEnumO(uiLayout *layout, const char *opname, const char *propname, struct IDProperty *properties, int context, int flag)
void uiLayoutSetOperatorContext(uiLayout *layout, int opcontext)
int UI_icon_colorid_from_report_type(int type)
struct uiLayout * UI_popup_menu_layout(uiPopupMenu *pup)
void uiItemsEnumO(uiLayout *layout, const char *opname, const char *propname)
void UI_popup_menu_end(struct bContext *C, struct uiPopupMenu *pup)
uiPopupMenu * UI_popup_menu_begin(struct bContext *C, const char *title, int icon) ATTR_NONNULL()
void UI_GetThemeColorType3fv(int colorid, int spacetype, float col[3])
#define WM_FILESEL_DIRECTORY
static int unpack_all_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
void FILE_OT_make_paths_absolute(wmOperatorType *ot)
static int unpack_item_exec(bContext *C, wmOperator *op)
void FILE_OT_unpack_all(wmOperatorType *ot)
void FILE_OT_unpack_item(wmOperatorType *ot)
static int report_missing_files_exec(bContext *C, wmOperator *op)
static int autopack_toggle_exec(bContext *C, wmOperator *op)
static const EnumPropertyItem unpack_all_method_items[]
static int make_paths_absolute_exec(bContext *C, wmOperator *op)
static int find_missing_files_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
void FILE_OT_pack_all(wmOperatorType *ot)
static const EnumPropertyItem unpack_item_method_items[]
void FILE_OT_autopack_toggle(wmOperatorType *ot)
static int make_paths_relative_exec(bContext *C, wmOperator *op)
void FILE_OT_report_missing_files(wmOperatorType *ot)
static int unpack_all_exec(bContext *C, wmOperator *op)
static int unpack_libraries_exec(bContext *C, wmOperator *op)
static int pack_all_exec(bContext *C, wmOperator *op)
static int unpack_libraries_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
static int update_reports_display_invoke(bContext *C, wmOperator *UNUSED(op), const wmEvent *event)
void FILE_OT_pack_libraries(wmOperatorType *ot)
static int pack_all_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
static int unpack_item_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
static int find_missing_files_exec(bContext *C, wmOperator *op)
void FILE_OT_unpack_libraries(wmOperatorType *ot)
void FILE_OT_make_paths_relative(wmOperatorType *ot)
void FILE_OT_find_missing_files(wmOperatorType *ot)
void INFO_OT_reports_display_update(wmOperatorType *ot)
static int pack_libraries_exec(bContext *C, wmOperator *op)
void(* MEM_freeN)(void *vmemh)
void RNA_string_get(PointerRNA *ptr, const char *name, char *value)
int RNA_int_get(PointerRNA *ptr, const char *name)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
int RNA_enum_get(PointerRNA *ptr, const char *name)
char * RNA_string_get_alloc(PointerRNA *ptr, const char *name, char *fixedbuf, int fixedlen)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, bool default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, int default_value, int hardmin, int hardmax, const char *ui_name, const char *ui_description, int softmin, int softmax)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, int default_value, const char *ui_name, const char *ui_description)
struct wmTimer * reporttimer
int(* invoke)(struct bContext *, struct wmOperator *, const struct wmEvent *) ATTR_WARN_UNUSED_RESULT
int(* exec)(struct bContext *, struct wmOperator *) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports
struct wmOperatorType * type
void WM_main_add_notifier(unsigned int type, void *reference)
void WM_event_add_fileselect(bContext *C, wmOperator *op)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
void WM_operator_properties_filesel(wmOperatorType *ot, int filter, short type, short action, short flag, short display, short sort)
int WM_operator_confirm_message(bContext *C, wmOperator *op, const char *message)
void WM_event_remove_timer(wmWindowManager *wm, wmWindow *UNUSED(win), wmTimer *timer)