Blender  V2.93
Functions
wm_files.h File Reference

Go to the source code of this file.

Functions

void wm_history_file_read (void)
 
void wm_homefile_read (struct bContext *C, struct ReportList *reports, bool use_factory_settings, bool use_empty_data, bool use_data, bool use_userdef, const char *filepath_startup_override, const char *app_template_override, bool *r_is_factory_startup)
 
void wm_file_read_report (bContext *C, struct Main *bmain)
 
void wm_close_file_dialog (bContext *C, struct wmGenericCallback *post_action)
 
bool wm_file_or_image_is_modified (const Main *bmain, const wmWindowManager *wm)
 
void WM_OT_save_homefile (struct wmOperatorType *ot)
 
void WM_OT_save_userpref (struct wmOperatorType *ot)
 
void WM_OT_read_userpref (struct wmOperatorType *ot)
 
void WM_OT_read_factory_userpref (struct wmOperatorType *ot)
 
void WM_OT_read_history (struct wmOperatorType *ot)
 
void WM_OT_read_homefile (struct wmOperatorType *ot)
 
void WM_OT_read_factory_settings (struct wmOperatorType *ot)
 
void WM_OT_open_mainfile (struct wmOperatorType *ot)
 
void WM_OT_revert_mainfile (struct wmOperatorType *ot)
 
void WM_OT_recover_last_session (struct wmOperatorType *ot)
 
void WM_OT_recover_auto_save (struct wmOperatorType *ot)
 
void WM_OT_save_as_mainfile (struct wmOperatorType *ot)
 
void WM_OT_save_mainfile (struct wmOperatorType *ot)
 
void WM_OT_link (struct wmOperatorType *ot)
 
void WM_OT_append (struct wmOperatorType *ot)
 
void WM_OT_lib_relocate (struct wmOperatorType *ot)
 
void WM_OT_lib_reload (struct wmOperatorType *ot)
 

Function Documentation

◆ wm_close_file_dialog()

void wm_close_file_dialog ( bContext C,
struct wmGenericCallback post_action 
)

◆ wm_file_or_image_is_modified()

bool wm_file_or_image_is_modified ( const Main bmain,
const wmWindowManager wm 
)

◆ wm_file_read_report()

void wm_file_read_report ( bContext C,
struct Main bmain 
)

◆ wm_history_file_read()

void wm_history_file_read ( void  )

◆ wm_homefile_read()

void wm_homefile_read ( bContext C,
ReportList reports,
bool  use_factory_settings,
bool  use_empty_data,
bool  use_data,
bool  use_userdef,
const char *  filepath_startup_override,
const char *  app_template_override,
bool *  r_is_factory_startup 
)

Called on startup, (context entirely filled with NULLs) or called for 'New File' both startup.blend and userpref.blend are checked.

Parameters
use_factory_settingsIgnore on-disk startup file, use bundled datatoc_startup_blend instead. Used for "Restore Factory Settings".
use_userdefLoad factory settings as well as startup file. Disabled for "File New" we don't want to reload preferences.
filepath_startup_overrideOptional path pointing to an alternative blend file (may be NULL).
app_template_overrideTemplate to use instead of the template defined in user-preferences. When not-null, this is written into the user preferences.

Definition at line 904 of file wm_files.c.

References app_template, BKE_appdir_app_template_id_search(), BKE_appdir_folder_id(), BKE_blender_userdef_app_template_data_set_and_free(), BKE_blender_userdef_data_set_and_free(), BKE_blendfile_read(), BKE_blendfile_read_from_memory(), BKE_blendfile_read_make_empty(), BKE_blendfile_read_setup_ex(), BKE_blendfile_userdef_from_defaults(), BKE_blendfile_userdef_read(), BKE_reportf(), BLENDER_STARTUP_FILE, BLENDER_USER_CONFIG, BLENDER_USERPREF_FILE, BLI_access(), BLI_assert, BLI_exists(), BLI_listbase_is_empty(), BLI_path_join(), BLI_strncpy(), BLO_READ_SKIP_DATA, BLO_READ_SKIP_USERDEF, BPY_run_string_eval(), C, CTX_data_main(), CTX_py_init_get(), datatoc_startup_blend, datatoc_startup_blend_size, FILE_MAX, G, G_FILE_NO_UI, G_FLAG_SCRIPT_AUTOEXEC, G_FLAG_SCRIPT_OVERRIDE_PREF, G_MAIN, KEYCONF_INIT_DEFAULT, LISTBASE_FOREACH, Main::name, NULL, params, RPT_ERROR, RPT_WARNING, SET_FLAG_FROM_TEST, BlendFileReadParams::skip_flags, STREQ, USER_SCRIPT_AUTOEXEC_DISABLE, Main::wm, WM_check(), wm_clear_default_size(), wm_file_read_post(), wm_file_read_pre(), wm_init_userdef(), wm_window_match_do(), and wm_window_match_init().

Referenced by wm_homefile_read_exec(), WM_init(), and wm_userpref_read_exec().

◆ WM_OT_append()

void WM_OT_append ( struct wmOperatorType ot)

◆ WM_OT_lib_reload()

void WM_OT_lib_reload ( struct wmOperatorType ot)

◆ WM_OT_lib_relocate()

void WM_OT_lib_relocate ( struct wmOperatorType ot)

◆ WM_OT_link()

void WM_OT_link ( struct wmOperatorType ot)

◆ WM_OT_open_mainfile()

void WM_OT_open_mainfile ( struct wmOperatorType ot)

◆ WM_OT_read_factory_settings()

void WM_OT_read_factory_settings ( struct wmOperatorType ot)

◆ WM_OT_read_factory_userpref()

void WM_OT_read_factory_userpref ( struct wmOperatorType ot)

◆ WM_OT_read_history()

void WM_OT_read_history ( struct wmOperatorType ot)

◆ WM_OT_read_homefile()

void WM_OT_read_homefile ( struct wmOperatorType ot)

◆ WM_OT_read_userpref()

void WM_OT_read_userpref ( struct wmOperatorType ot)

◆ WM_OT_recover_auto_save()

void WM_OT_recover_auto_save ( struct wmOperatorType ot)

◆ WM_OT_recover_last_session()

void WM_OT_recover_last_session ( struct wmOperatorType ot)

◆ WM_OT_revert_mainfile()

void WM_OT_revert_mainfile ( struct wmOperatorType ot)

◆ WM_OT_save_as_mainfile()

void WM_OT_save_as_mainfile ( struct wmOperatorType ot)

◆ WM_OT_save_homefile()

void WM_OT_save_homefile ( struct wmOperatorType ot)

◆ WM_OT_save_mainfile()

void WM_OT_save_mainfile ( struct wmOperatorType ot)

◆ WM_OT_save_userpref()

void WM_OT_save_userpref ( struct wmOperatorType ot)