Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_edit.c
| Show First 20 Lines • Show All 1,515 Lines • ▼ Show 20 Lines | if (area) { | ||||
| spacetype = area->spacetype; | spacetype = area->spacetype; | ||||
| } | } | ||||
| sad->from_anim_edit = (ELEM(spacetype, SPACE_GRAPH, SPACE_ACTION, SPACE_NLA)); | sad->from_anim_edit = (ELEM(spacetype, SPACE_GRAPH, SPACE_ACTION, SPACE_NLA)); | ||||
| screen->animtimer->customdata = sad; | screen->animtimer->customdata = sad; | ||||
| } | } | ||||
| /* Seek audio to ensure playback in preview range with AV sync. */ | |||||
| DEG_id_tag_update(&scene->id, ID_RECALC_AUDIO_SEEK); | |||||
| /* notifier catched by top header, for button */ | /* notifier catched by top header, for button */ | ||||
sergey: Why do you need a specific depsgraph? Why can't use general tagging `DEG_id_tag_update(&scene… | |||||
| WM_event_add_notifier(C, NC_SCREEN | ND_ANIMPLAY, NULL); | WM_event_add_notifier(C, NC_SCREEN | ND_ANIMPLAY, NULL); | ||||
| } | } | ||||
| /* helper for screen_animation_play() - only to be used for TimeLine */ | /* helper for screen_animation_play() - only to be used for TimeLine */ | ||||
| static ARegion *time_top_left_3dwindow(bScreen *screen) | static ARegion *time_top_left_3dwindow(bScreen *screen) | ||||
| { | { | ||||
| ARegion *aret = NULL; | ARegion *aret = NULL; | ||||
| int min = 10000; | int min = 10000; | ||||
| ▲ Show 20 Lines • Show All 191 Lines • Show Last 20 Lines | |||||
Why do you need a specific depsgraph? Why can't use general tagging DEG_id_tag_update(&scene->id, ID_RECALC_AUDIO_SEEK); be used here?