59 ot->
name =
"Pack Linked Libraries";
60 ot->
idname =
"FILE_OT_pack_libraries";
62 "Store all data-blocks linked from other .blend files in the current .blend file. "
63 "Library references are preserved so the linked data-blocks can be unpacked again";
90 C, op,
"Unpack Linked Libraries - creates directories, all new paths should work");
96 ot->
name =
"Unpack Linked Libraries";
97 ot->
idname =
"FILE_OT_unpack_libraries";
98 ot->
description =
"Restore all packed linked data-blocks to their original locations";
132 ot->
name =
"Automatically Pack Resources";
133 ot->
idname =
"FILE_OT_autopack_toggle";
134 ot->
description =
"Automatically pack all external files into the .blend file";
172 C, op,
"Some images are painted on. These changes will be lost. Continue?");
181 ot->
name =
"Pack Resources";
183 ot->
description =
"Pack all used external files into this .blend";
200 {
PF_USE_LOCAL,
"USE_LOCAL", 0,
"Use files in current directory (create when necessary)",
""},
204 "Write files to current directory (overwrite existing files)",
209 "Use files in original location (create when necessary)",
214 "Write files to original location (overwrite existing files)",
216 {
PF_KEEP,
"KEEP", 0,
"Disable auto-pack, keep all packed files",
""},
217 {
PF_REMOVE,
"REMOVE", 0,
"Remove Pack",
""},
272 ot->
name =
"Unpack Resources";
274 ot->
description =
"Unpack all files packed into this .blend to external ones";
295 {
PF_USE_LOCAL,
"USE_LOCAL", 0,
"Use file from current directory (create when necessary)",
""},
299 "Write file to current directory (overwrite existing file)",
304 "Use file in original location (create when necessary)",
309 "Write file to original location (overwrite existing file)",
381 "Identifier type of ID block",
397 if (blendfile_path[0] ==
'\0') {
413 ot->
name =
"Make Paths Relative";
414 ot->
idname =
"FILE_OT_make_paths_relative";
415 ot->
description =
"Make all paths to external files relative to current .blend";
435 if (blendfile_path[0] ==
'\0') {
451 ot->
name =
"Make Paths Absolute";
452 ot->
idname =
"FILE_OT_make_paths_absolute";
453 ot->
description =
"Make all paths to external files absolute";
481 ot->
name =
"Report Missing Files";
482 ot->
idname =
"FILE_OT_report_missing_files";
520 ot->
name =
"Find Missing Files";
521 ot->
idname =
"FILE_OT_find_missing_files";
536 "Find all files in the search path (not just missing)");
559 #define INFO_TIMEOUT 5.0f
560 #define ERROR_TIMEOUT 10.0f
561 #define FLASH_TIMEOUT 1.0f
562 #define COLLAPSE_TIMEOUT 0.25f
563 #define BRIGHTEN_AMOUNT 0.1f
570 float target_col[4] = {0.0f, 0.0f, 0.0f, 0.0f};
571 float progress = 0.0, flash_progress = 0.0;
599 target_col[3] = 0.65f;
617 if (flash_progress <= 1.0f) {
641 ot->
name =
"Update Reports Display";
642 ot->
idname =
"INFO_OT_reports_display_update";
643 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, 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, 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, eReportType type, const char *message)
void interp_v4_v4v4(float r[4], const float a[4], const float b[4], float t)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL()
size_t BLI_snprintf(char *__restrict dst, size_t maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
#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.
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)
void uiLayoutSetOperatorContext(uiLayout *layout, wmOperatorCallContext opcontext)
void uiItemsFullEnumO(uiLayout *layout, const char *opname, const char *propname, struct IDProperty *properties, wmOperatorCallContext context, int flag)
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])
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)
char * RNA_string_get_alloc(PointerRNA *ptr, const char *name, char *fixedbuf, int fixedlen, int *r_len)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
int RNA_enum_get(PointerRNA *ptr, const char *name)
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, const int filter, const short type, const eFileSel_Action action, const eFileSel_Flag flag, const short display, const 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)