Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_files.c
| Show First 20 Lines • Show All 693 Lines • ▼ Show 20 Lines | #endif /* WITH_PYTHON */ | ||||
| Main *bmain = CTX_data_main(C); | Main *bmain = CTX_data_main(C); | ||||
| if (use_userdef) { | if (use_userdef) { | ||||
| if (is_factory_startup) { | if (is_factory_startup) { | ||||
| BKE_callback_exec_null(bmain, BKE_CB_EVT_LOAD_FACTORY_USERDEF_POST); | BKE_callback_exec_null(bmain, BKE_CB_EVT_LOAD_FACTORY_USERDEF_POST); | ||||
| } | } | ||||
| } | } | ||||
| if (is_factory_startup && BLT_translate_new_dataname()) { | |||||
| /* Translate workspace names */ | |||||
| LISTBASE_FOREACH_MUTABLE (WorkSpace *, workspace, &bmain->workspaces) { | |||||
| BKE_libblock_rename(bmain, &workspace->id, CTX_DATA_(BLT_I18NCONTEXT_ID_WORKSPACE, workspace->id.name + 2)); | |||||
| } | |||||
| } | |||||
mont29: I would only do that if it's a factory startup actually... don't think we want this behavior… | |||||
Done Inline ActionsRight, let’s leave it as is if the startup files have been changed. pioverfour: Right, let’s leave it as is if the startup files have been changed. | |||||
| if (use_data) { | if (use_data) { | ||||
| /* important to do before NULL'ing the context */ | /* important to do before NULL'ing the context */ | ||||
| BKE_callback_exec_null(bmain, BKE_CB_EVT_VERSION_UPDATE); | BKE_callback_exec_null(bmain, BKE_CB_EVT_VERSION_UPDATE); | ||||
| BKE_callback_exec_null(bmain, BKE_CB_EVT_LOAD_POST); | BKE_callback_exec_null(bmain, BKE_CB_EVT_LOAD_POST); | ||||
| if (is_factory_startup) { | if (is_factory_startup) { | ||||
| BKE_callback_exec_null(bmain, BKE_CB_EVT_LOAD_FACTORY_STARTUP_POST); | BKE_callback_exec_null(bmain, BKE_CB_EVT_LOAD_FACTORY_STARTUP_POST); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 3,113 Lines • Show Last 20 Lines | |||||
I would only do that if it's a factory startup actually... don't think we want this behavior with user-customized own startup files?