Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/intern/source/multires_bake.c
| Show First 20 Lines • Show All 492 Lines • ▼ Show 20 Lines | if (tot_tri > 0) { | ||||
| } | } | ||||
| /* all threads shares the same custom bake data */ | /* all threads shares the same custom bake data */ | ||||
| if (initBakeData) { | if (initBakeData) { | ||||
| bake_data = initBakeData(bkr, ima); | bake_data = initBakeData(bkr, ima); | ||||
| } | } | ||||
| if (tot_thread > 1) { | if (tot_thread > 1) { | ||||
| BLI_threadpool_init(&threads, do_multires_bake_thread, tot_thread); | BLI_threadpool_init(&threads, do_multires_bake_thread, tot_thread, "MultiResBake"); | ||||
| } | } | ||||
| handles = MEM_callocN(tot_thread * sizeof(MultiresBakeThread), "do_multires_bake handles"); | handles = MEM_callocN(tot_thread * sizeof(MultiresBakeThread), "do_multires_bake handles"); | ||||
| init_ccgdm_arrays(bkr->hires_dm); | init_ccgdm_arrays(bkr->hires_dm); | ||||
| /* faces queue */ | /* faces queue */ | ||||
| queue.cur_tri = 0; | queue.cur_tri = 0; | ||||
| ▲ Show 20 Lines • Show All 991 Lines • Show Last 20 Lines | |||||