Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_files.c
| Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | |||||
| #ifdef WITH_PYTHON | #ifdef WITH_PYTHON | ||||
| #include "BPY_extern.h" | #include "BPY_extern.h" | ||||
| #endif | #endif | ||||
| #include "DEG_depsgraph.h" | #include "DEG_depsgraph.h" | ||||
| #include "WM_api.h" | #include "WM_api.h" | ||||
| #include "WM_types.h" | #include "WM_types.h" | ||||
| #include "WM_message.h" | |||||
| #include "wm.h" | #include "wm.h" | ||||
| #include "wm_files.h" | #include "wm_files.h" | ||||
| #include "wm_window.h" | #include "wm_window.h" | ||||
| #include "wm_event_system.h" | #include "wm_event_system.h" | ||||
| static RecentFile *wm_file_history_find(const char *filepath); | static RecentFile *wm_file_history_find(const char *filepath); | ||||
| static void wm_history_file_free(RecentFile *recent); | static void wm_history_file_free(RecentFile *recent); | ||||
| static void wm_history_file_update(void); | static void wm_history_file_update(void); | ||||
| ▲ Show 20 Lines • Show All 365 Lines • ▼ Show 20 Lines | |||||
| #endif /* WITH_PYTHON */ | #endif /* WITH_PYTHON */ | ||||
| WM_operatortype_last_properties_clear_all(); | WM_operatortype_last_properties_clear_all(); | ||||
| /* important to do before NULL'ing the context */ | /* important to do before NULL'ing the context */ | ||||
| BLI_callback_exec(CTX_data_main(C), NULL, BLI_CB_EVT_VERSION_UPDATE); | BLI_callback_exec(CTX_data_main(C), NULL, BLI_CB_EVT_VERSION_UPDATE); | ||||
| BLI_callback_exec(CTX_data_main(C), NULL, BLI_CB_EVT_LOAD_POST); | BLI_callback_exec(CTX_data_main(C), NULL, BLI_CB_EVT_LOAD_POST); | ||||
| #if 1 | |||||
| WM_event_add_notifier(C, NC_WM | ND_FILEREAD, NULL); | WM_event_add_notifier(C, NC_WM | ND_FILEREAD, NULL); | ||||
| #else | |||||
| WM_msg_publish_static(CTX_wm_message_bus(C), WM_MSG_STATICTYPE_FILE_READ); | |||||
| #endif | |||||
| /* report any errors. | /* report any errors. | ||||
| * currently disabled if addons aren't yet loaded */ | * currently disabled if addons aren't yet loaded */ | ||||
| if (addons_loaded) { | if (addons_loaded) { | ||||
| wm_file_read_report(C); | wm_file_read_report(C); | ||||
| } | } | ||||
| if (!G.background) { | if (!G.background) { | ||||
| ▲ Show 20 Lines • Show All 1,710 Lines • Show Last 20 Lines | |||||