Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/sequencer.c
| Show First 20 Lines • Show All 3,298 Lines • ▼ Show 20 Lines | else { | ||||
| * When rendering from command line renderer is called from main thread, in this | * When rendering from command line renderer is called from main thread, in this | ||||
| * case it's always safe to render scene here | * case it's always safe to render scene here | ||||
| */ | */ | ||||
| if (!is_thread_main || is_rendering == false || is_background || context->eval_ctx->mode == DAG_EVAL_RENDER) { | if (!is_thread_main || is_rendering == false || is_background || context->eval_ctx->mode == DAG_EVAL_RENDER) { | ||||
| if (re == NULL) | if (re == NULL) | ||||
| re = RE_NewRender(scene->id.name); | re = RE_NewRender(scene->id.name); | ||||
| BKE_scene_update_for_newframe(context->eval_ctx, context->bmain, scene, scene->lay); | BKE_scene_update_for_newframe(context->eval_ctx, context->bmain, scene, scene->lay); | ||||
| RE_BlenderFrame(re, context->bmain, scene, NULL, camera, scene->lay, frame, false); | RE_BlenderFrame(re, context->bmain, scene, NULL, NULL, camera, scene->lay, frame, false); | ||||
| /* restore previous state after it was toggled on & off by RE_BlenderFrame */ | /* restore previous state after it was toggled on & off by RE_BlenderFrame */ | ||||
| G.is_rendering = is_rendering; | G.is_rendering = is_rendering; | ||||
| } | } | ||||
| for (i = 0; i < totviews; i++) { | for (i = 0; i < totviews; i++) { | ||||
| SeqRenderData localcontext = *context; | SeqRenderData localcontext = *context; | ||||
| RenderResult rres; | RenderResult rres; | ||||
| ▲ Show 20 Lines • Show All 2,282 Lines • Show Last 20 Lines | |||||