Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_ops.c
| Show First 20 Lines • Show All 4,459 Lines • ▼ Show 20 Lines | bScreen *ED_screen_animation_no_scrub(const wmWindowManager *wm) | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| /* toggle operator */ | /* toggle operator */ | ||||
| int ED_screen_animation_play(bContext *C, int sync, int mode) | int ED_screen_animation_play(bContext *C, int sync, int mode) | ||||
| { | { | ||||
| bScreen *screen = CTX_wm_screen(C); | bScreen *screen = CTX_wm_screen(C); | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| Scene *scene_eval = DEG_get_evaluated_scene(CTX_data_depsgraph(C)); | Scene *scene_eval = DEG_get_evaluated_scene(CTX_data_ensure_evaluated_depsgraph(C)); | ||||
| if (ED_screen_animation_playing(CTX_wm_manager(C))) { | if (ED_screen_animation_playing(CTX_wm_manager(C))) { | ||||
| /* stop playback now */ | /* stop playback now */ | ||||
| ED_screen_animation_timer(C, 0, 0, 0, 0); | ED_screen_animation_timer(C, 0, 0, 0, 0); | ||||
| BKE_sound_stop_scene(scene_eval); | BKE_sound_stop_scene(scene_eval); | ||||
| WM_event_add_notifier(C, NC_SCENE | ND_FRAME, scene); | WM_event_add_notifier(C, NC_SCENE | ND_FRAME, scene); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 877 Lines • Show Last 20 Lines | |||||