Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/intern/source/pipeline.c
| Show First 20 Lines • Show All 2,487 Lines • ▼ Show 20 Lines | for (nfra = sfra, scene->r.cfra = sfra; scene->r.cfra <= efra; scene->r.cfra++) { | ||||
| * which will make sure render layer settings are up-to-date, initialize the | * which will make sure render layer settings are up-to-date, initialize the | ||||
| * render database itself and then perform full scene update with only needed | * render database itself and then perform full scene update with only needed | ||||
| * layers. | * layers. | ||||
| * -sergey- | * -sergey- | ||||
| */ | */ | ||||
| { | { | ||||
| float ctime = BKE_scene_frame_get(scene); | float ctime = BKE_scene_frame_get(scene); | ||||
| AnimData *adt = BKE_animdata_from_id(&scene->id); | AnimData *adt = BKE_animdata_from_id(&scene->id); | ||||
| BKE_animsys_evaluate_animdata(&scene->id, adt, ctime, ADT_RECALC_ALL, false); | const AnimationEvalContext anim_eval_context = BKE_animsys_eval_context_construct( | ||||
| re->pipeline_depsgraph, ctime); | |||||
| BKE_animsys_evaluate_animdata(&scene->id, adt, &anim_eval_context, ADT_RECALC_ALL, false); | |||||
| } | } | ||||
| render_update_depsgraph(re); | render_update_depsgraph(re); | ||||
| /* only border now, todo: camera lens. (ton) */ | /* only border now, todo: camera lens. (ton) */ | ||||
| render_initialize_from_main(re, &rd, bmain, scene, single_layer, camera_override, 1, 0); | render_initialize_from_main(re, &rd, bmain, scene, single_layer, camera_override, 1, 0); | ||||
| if (nfra != scene->r.cfra) { | if (nfra != scene->r.cfra) { | ||||
| ▲ Show 20 Lines • Show All 434 Lines • Show Last 20 Lines | |||||