Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_ops.c
| Show First 20 Lines • Show All 568 Lines • ▼ Show 20 Lines | switch (sa->spacetype) { | ||||
| { | { | ||||
| SpaceSeq *sseq = sa->spacedata.first; | SpaceSeq *sseq = sa->spacedata.first; | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| return ED_space_sequencer_check_show_maskedit(sseq, scene); | return ED_space_sequencer_check_show_maskedit(sseq, scene); | ||||
| } | } | ||||
| case SPACE_IMAGE: | case SPACE_IMAGE: | ||||
| { | { | ||||
| SpaceImage *sima = sa->spacedata.first; | SpaceImage *sima = sa->spacedata.first; | ||||
| SceneLayer *sl = CTX_data_scene_layer(C); | ViewLayer *sl = CTX_data_view_layer(C); | ||||
| return ED_space_image_check_show_maskedit(sl, sima); | return ED_space_image_check_show_maskedit(sl, sima); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,817 Lines • ▼ Show 20 Lines | |||||
| #ifdef PROFILE_AUDIO_SYNCH | #ifdef PROFILE_AUDIO_SYNCH | ||||
| static int old_frame = 0; | static int old_frame = 0; | ||||
| int newfra_int; | int newfra_int; | ||||
| #endif | #endif | ||||
| if (screen->animtimer && screen->animtimer == event->customdata) { | if (screen->animtimer && screen->animtimer == event->customdata) { | ||||
| Main *bmain = CTX_data_main(C); | Main *bmain = CTX_data_main(C); | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| SceneLayer *scene_layer = CTX_data_scene_layer(C); | ViewLayer *view_layer = CTX_data_view_layer(C); | ||||
| struct Depsgraph *depsgraph = CTX_data_depsgraph(C); | struct Depsgraph *depsgraph = CTX_data_depsgraph(C); | ||||
| wmTimer *wt = screen->animtimer; | wmTimer *wt = screen->animtimer; | ||||
| ScreenAnimData *sad = wt->customdata; | ScreenAnimData *sad = wt->customdata; | ||||
| wmWindowManager *wm = CTX_wm_manager(C); | wmWindowManager *wm = CTX_wm_manager(C); | ||||
| wmWindow *window; | wmWindow *window; | ||||
| ScrArea *sa; | ScrArea *sa; | ||||
| int sync; | int sync; | ||||
| float time; | float time; | ||||
| ▲ Show 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | #endif | ||||
| if (sad->flag & ANIMPLAY_FLAG_JUMPED) { | if (sad->flag & ANIMPLAY_FLAG_JUMPED) { | ||||
| BKE_sound_seek_scene(bmain, scene); | BKE_sound_seek_scene(bmain, scene); | ||||
| #ifdef PROFILE_AUDIO_SYNCH | #ifdef PROFILE_AUDIO_SYNCH | ||||
| old_frame = CFRA; | old_frame = CFRA; | ||||
| #endif | #endif | ||||
| } | } | ||||
| /* since we follow drawflags, we can't send notifier but tag regions ourselves */ | /* since we follow drawflags, we can't send notifier but tag regions ourselves */ | ||||
| ED_update_for_newframe(bmain, scene, scene_layer, depsgraph); | ED_update_for_newframe(bmain, scene, view_layer, depsgraph); | ||||
| for (window = wm->windows.first; window; window = window->next) { | for (window = wm->windows.first; window; window = window->next) { | ||||
| const bScreen *win_screen = WM_window_get_active_screen(window); | const bScreen *win_screen = WM_window_get_active_screen(window); | ||||
| for (sa = win_screen->areabase.first; sa; sa = sa->next) { | for (sa = win_screen->areabase.first; sa; sa = sa->next) { | ||||
| ARegion *ar; | ARegion *ar; | ||||
| for (ar = sa->regionbase.first; ar; ar = ar->next) { | for (ar = sa->regionbase.first; ar; ar = ar->next) { | ||||
| bool redraw = false; | bool redraw = false; | ||||
| ▲ Show 20 Lines • Show All 854 Lines • Show Last 20 Lines | |||||