Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_edit.c
| Show First 20 Lines • Show All 1,451 Lines • ▼ Show 20 Lines | void ED_screen_animation_timer_update(bScreen *screen, int redraws, int refresh) | ||||
| } | } | ||||
| } | } | ||||
| /* results in fully updated anim system */ | /* results in fully updated anim system */ | ||||
| void ED_update_for_newframe(Main *bmain, Depsgraph *depsgraph) | void ED_update_for_newframe(Main *bmain, Depsgraph *depsgraph) | ||||
| { | { | ||||
| Scene *scene = DEG_get_input_scene(depsgraph); | Scene *scene = DEG_get_input_scene(depsgraph); | ||||
| DEG_id_tag_update_ex(bmain, &scene->id, ID_RECALC_TIME); | |||||
| #ifdef DURIAN_CAMERA_SWITCH | #ifdef DURIAN_CAMERA_SWITCH | ||||
| void *camera = BKE_scene_camera_switch_find(scene); | void *camera = BKE_scene_camera_switch_find(scene); | ||||
| if (camera && scene->camera != camera) { | if (camera && scene->camera != camera) { | ||||
| bScreen *sc; | bScreen *sc; | ||||
| scene->camera = camera; | scene->camera = camera; | ||||
| /* are there cameras in the views that are not in the scene? */ | /* are there cameras in the views that are not in the scene? */ | ||||
| for (sc = bmain->screens.first; sc; sc = sc->id.next) { | for (sc = bmain->screens.first; sc; sc = sc->id.next) { | ||||
| BKE_screen_view3d_scene_sync(sc, scene); | BKE_screen_view3d_scene_sync(sc, scene); | ||||
| ▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines | |||||