Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/intern/source/pipeline.c
| Show First 20 Lines • Show All 2,979 Lines • ▼ Show 20 Lines | RenderPass *RE_create_gp_pass(RenderResult *rr, const char *layername, const char *viewname) | ||||
| RenderPass *rp = RE_pass_find_by_name(rl, RE_PASSNAME_COMBINED, viewname); | RenderPass *rp = RE_pass_find_by_name(rl, RE_PASSNAME_COMBINED, viewname); | ||||
| if (rp) { | if (rp) { | ||||
| if (rp->rect) { | if (rp->rect) { | ||||
| MEM_freeN(rp->rect); | MEM_freeN(rp->rect); | ||||
| } | } | ||||
| BLI_freelinkN(&rl->passes, rp); | BLI_freelinkN(&rl->passes, rp); | ||||
| } | } | ||||
| /* create a totally new pass */ | /* create a totally new pass */ | ||||
| return gp_add_pass(rr, rl, 4, RE_PASSNAME_COMBINED, viewname); | return render_layer_add_pass(rr, rl, 4, RE_PASSNAME_COMBINED, viewname, "RGBA"); | ||||
| } | } | ||||