Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/intern/source/render_result.c
| Show All 23 Lines | |||||
| #include <stdio.h> | #include <stdio.h> | ||||
| #include <stdlib.h> | #include <stdlib.h> | ||||
| #include <string.h> | #include <string.h> | ||||
| #include <errno.h> | #include <errno.h> | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BLI_ghash.h" | |||||
| #include "BLI_listbase.h" | #include "BLI_listbase.h" | ||||
| #include "BLI_hash_md5.h" | #include "BLI_hash_md5.h" | ||||
| #include "BLI_path_util.h" | #include "BLI_path_util.h" | ||||
| #include "BLI_rect.h" | #include "BLI_rect.h" | ||||
| #include "BLI_string.h" | #include "BLI_string.h" | ||||
| #include "BLI_threads.h" | #include "BLI_threads.h" | ||||
| #include "BKE_appdir.h" | #include "BKE_appdir.h" | ||||
| ▲ Show 20 Lines • Show All 1,129 Lines • ▼ Show 20 Lines | for (rlp = rrpart->layers.first; rlp; rlp = rlp->next) { | ||||
| IMB_exrtile_write_channels(rl->exrhandle, partx, party, 0, viewname, false); | IMB_exrtile_write_channels(rl->exrhandle, partx, party, 0, viewname, false); | ||||
| } | } | ||||
| BLI_thread_unlock(LOCK_IMAGE); | BLI_thread_unlock(LOCK_IMAGE); | ||||
| } | } | ||||
| void render_result_save_empty_result_tiles(Render *re) | void render_result_save_empty_result_tiles(Render *re) | ||||
| { | { | ||||
| RenderPart *pa; | |||||
| RenderResult *rr; | RenderResult *rr; | ||||
| RenderLayer *rl; | RenderLayer *rl; | ||||
| for (rr = re->result; rr; rr = rr->next) { | for (rr = re->result; rr; rr = rr->next) { | ||||
| for (rl = rr->layers.first; rl; rl = rl->next) { | for (rl = rr->layers.first; rl; rl = rl->next) { | ||||
| for (pa = re->parts.first; pa; pa = pa->next) { | GHashIterator pa_iter; | ||||
| GHASH_ITER (pa_iter, re->parts) { | |||||
| RenderPart *pa = BLI_ghashIterator_getValue(&pa_iter); | |||||
| if (pa->status != PART_STATUS_MERGED) { | if (pa->status != PART_STATUS_MERGED) { | ||||
| int party = pa->disprect.ymin - re->disprect.ymin; | int party = pa->disprect.ymin - re->disprect.ymin; | ||||
| int partx = pa->disprect.xmin - re->disprect.xmin; | int partx = pa->disprect.xmin - re->disprect.xmin; | ||||
| IMB_exrtile_write_channels(rl->exrhandle, partx, party, 0, re->viewname, true); | IMB_exrtile_write_channels(rl->exrhandle, partx, party, 0, re->viewname, true); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 521 Lines • Show Last 20 Lines | |||||