Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_files.c
| Show First 20 Lines • Show All 549 Lines • ▼ Show 20 Lines | if (use_data) { | ||||
| if (is_factory_startup) { | if (is_factory_startup) { | ||||
| BLI_callback_exec(bmain, NULL, BLI_CB_EVT_LOAD_FACTORY_STARTUP_POST); | BLI_callback_exec(bmain, NULL, BLI_CB_EVT_LOAD_FACTORY_STARTUP_POST); | ||||
| } | } | ||||
| } | } | ||||
| if (use_data) { | if (use_data) { | ||||
| WM_operatortype_last_properties_clear_all(); | WM_operatortype_last_properties_clear_all(); | ||||
| ED_editors_init(C); | |||||
| /* After load post, so for example the driver namespace can be filled | /* After load post, so for example the driver namespace can be filled | ||||
| * before evaluating the depsgraph. */ | * before evaluating the depsgraph. */ | ||||
| wm_event_do_depsgraph(C, true); | wm_event_do_depsgraph(C, true); | ||||
| ED_editors_init(C); | |||||
| #if 1 | #if 1 | ||||
| WM_event_add_notifier(C, NC_WM | ND_FILEREAD, NULL); | WM_event_add_notifier(C, NC_WM | ND_FILEREAD, NULL); | ||||
| #else | #else | ||||
| WM_msg_publish_static(CTX_wm_message_bus(C), WM_MSG_STATICTYPE_FILE_READ); | WM_msg_publish_static(CTX_wm_message_bus(C), WM_MSG_STATICTYPE_FILE_READ); | ||||
| #endif | #endif | ||||
| } | } | ||||
| /* report any errors. | /* report any errors. | ||||
| ▲ Show 20 Lines • Show All 2,559 Lines • Show Last 20 Lines | |||||