Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/intern/source/pipeline.c
| Context not available. | |||||
| int winy, | int winy, | ||||
| rcti *disprect) | rcti *disprect) | ||||
| { | { | ||||
| /* init stopwatches */ | |||||
| re->i.starttime = PIL_check_seconds_timer(); | |||||
| re->i.starttime_animation = 0.0; // RE_RenderAnim will copy starttime to it (this way we can | |||||
| // detect if an animation is being rendered) | |||||
| bool had_freestyle = (re->r.mode & R_EDGE_FRS) != 0; | bool had_freestyle = (re->r.mode & R_EDGE_FRS) != 0; | ||||
| re->ok = true; /* maybe flag */ | re->ok = true; /* maybe flag */ | ||||
| re->i.starttime = PIL_check_seconds_timer(); | |||||
| /* copy render data and render layers for thread safety */ | /* copy render data and render layers for thread safety */ | ||||
| render_copy_renderdata(&re->r, rd); | render_copy_renderdata(&re->r, rd); | ||||
| BLI_freelistN(&re->view_layers); | BLI_freelistN(&re->view_layers); | ||||
| Context not available. | |||||
| return; | return; | ||||
| } | } | ||||
| re->i.starttime_animation = re->i.starttime; // the render started is an animation-render | |||||
| // -> copy starttime from frame to animation-stats | |||||
| render_init_depsgraph(re); | render_init_depsgraph(re); | ||||
| if (is_movie) { | if (is_movie) { | ||||
| Context not available. | |||||