Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/intern/source/pipeline.c
| Show First 20 Lines • Show All 2,500 Lines • ▼ Show 20 Lines | void RE_RenderAnim(Render *re, | ||||
| Main *bmain, | Main *bmain, | ||||
| Scene *scene, | Scene *scene, | ||||
| ViewLayer *single_layer, | ViewLayer *single_layer, | ||||
| Object *camera_override, | Object *camera_override, | ||||
| int sfra, | int sfra, | ||||
| int efra, | int efra, | ||||
| int tfra) | int tfra) | ||||
| { | { | ||||
| /* Call hooks before taking a copy of scene->r. */ | |||||
sergeyUnsubmitted Done Inline Actionssergey: Call hooks before taking a copy of scene->r, so user can alter the render settings prior… | |||||
| render_callback_exec_id(re, re->main, &scene->id, BKE_CB_EVT_RENDER_INIT); | |||||
| const RenderData rd = scene->r; | const RenderData rd = scene->r; | ||||
| bMovieHandle *mh = NULL; | bMovieHandle *mh = NULL; | ||||
| const int cfrao = rd.cfra; | const int cfrao = rd.cfra; | ||||
| int nfra, totrendered = 0, totskipped = 0; | int nfra, totrendered = 0, totskipped = 0; | ||||
| const int totvideos = BKE_scene_multiview_num_videos_get(&rd); | const int totvideos = BKE_scene_multiview_num_videos_get(&rd); | ||||
| const bool is_movie = BKE_imtype_is_movie(rd.im_format.imtype); | const bool is_movie = BKE_imtype_is_movie(rd.im_format.imtype); | ||||
| const bool is_multiview_name = ((rd.scemode & R_MULTIVIEW) != 0 && | const bool is_multiview_name = ((rd.scemode & R_MULTIVIEW) != 0 && | ||||
| (rd.im_format.views_format == R_IMF_VIEWS_INDIVIDUAL)); | (rd.im_format.views_format == R_IMF_VIEWS_INDIVIDUAL)); | ||||
| render_callback_exec_id(re, re->main, &scene->id, BKE_CB_EVT_RENDER_INIT); | |||||
| /* do not fully call for each frame, it initializes & pops output window */ | /* do not fully call for each frame, it initializes & pops output window */ | ||||
| if (!render_initialize_from_main(re, &rd, bmain, scene, single_layer, camera_override, 0, 1)) { | if (!render_initialize_from_main(re, &rd, bmain, scene, single_layer, camera_override, 0, 1)) { | ||||
| return; | return; | ||||
| } | } | ||||
| render_init_depsgraph(re); | render_init_depsgraph(re); | ||||
| if (is_movie) { | if (is_movie) { | ||||
| ▲ Show 20 Lines • Show All 507 Lines • Show Last 20 Lines | |||||