Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_init_exit.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| wmWindowManager *wm = bmain->wm.first; | wmWindowManager *wm = bmain->wm.first; | ||||
| for (wmWindow *window = wm->windows.first; window != NULL; window = window->next) { | for (wmWindow *window = wm->windows.first; window != NULL; window = window->next) { | ||||
| Scene *scene = WM_window_get_active_scene(window); | Scene *scene = WM_window_get_active_scene(window); | ||||
| if ((scene->audio.flag & AUDIO_SYNC) == 0) { | if ((scene->audio.flag & AUDIO_SYNC) == 0) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| ViewLayer *view_layer = WM_window_get_active_view_layer(window); | ViewLayer *view_layer = WM_window_get_active_view_layer(window); | ||||
| Depsgraph *depsgraph = BKE_scene_get_depsgraph(bmain, scene, view_layer, false); | Depsgraph *depsgraph = BKE_scene_get_depsgraph(scene, view_layer, false); | ||||
| if (depsgraph == NULL) { | if (depsgraph == NULL) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| Scene *scene_eval = DEG_get_evaluated_scene(depsgraph); | Scene *scene_eval = DEG_get_evaluated_scene(depsgraph); | ||||
| BKE_sound_jack_scene_update(scene_eval, mode, time); | BKE_sound_jack_scene_update(scene_eval, mode, time); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | |||||
| /* normally 'wm_homefile_read' will do this, | /* normally 'wm_homefile_read' will do this, | ||||
| * however python is not initialized when called from this function. | * however python is not initialized when called from this function. | ||||
| * | * | ||||
| * unlikely any handlers are set but its possible, | * unlikely any handlers are set but its possible, | ||||
| * note that recovering the last session does its own callbacks. */ | * note that recovering the last session does its own callbacks. */ | ||||
| CTX_wm_window_set(C, CTX_wm_manager(C)->windows.first); | CTX_wm_window_set(C, CTX_wm_manager(C)->windows.first); | ||||
| BKE_callback_exec_null(bmain, BKE_CB_EVT_VERSION_UPDATE); | BKE_callback_exec(bmain, NULL, BKE_CB_EVT_VERSION_UPDATE); | ||||
| BKE_callback_exec_null(bmain, BKE_CB_EVT_LOAD_POST); | BKE_callback_exec(bmain, NULL, 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(bmain, NULL, BKE_CB_EVT_LOAD_FACTORY_STARTUP_POST); | ||||
| } | } | ||||
| wm_file_read_report(C, bmain); | wm_file_read_report(C, bmain); | ||||
| if (!G.background) { | if (!G.background) { | ||||
| CTX_wm_window_set(C, NULL); | CTX_wm_window_set(C, NULL); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||