Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/intern/source/external_engine.c
| Show First 20 Lines • Show All 448 Lines • ▼ Show 20 Lines | bool RE_bake_engine( | ||||
| /* TODO: actually link to a parent which shouldn't happen */ | /* TODO: actually link to a parent which shouldn't happen */ | ||||
| engine->re = re; | engine->re = re; | ||||
| engine->resolution_x = re->winx; | engine->resolution_x = re->winx; | ||||
| engine->resolution_y = re->winy; | engine->resolution_y = re->winy; | ||||
| RE_parts_init(re, false); | RE_parts_init(re, false); | ||||
| engine->tile_x = re->partx; | engine->tile_x = re->r.tilex; | ||||
| engine->tile_y = re->party; | engine->tile_y = re->r.tiley; | ||||
| /* update is only called so we create the engine.session */ | /* update is only called so we create the engine.session */ | ||||
| if (type->update) | if (type->update) | ||||
| type->update(engine, re->main, re->scene); | type->update(engine, re->main, re->scene); | ||||
| if (type->bake) | if (type->bake) | ||||
| type->bake(engine, re->scene, object, pass_type, pixel_array, num_pixels, depth, result); | type->bake(engine, re->scene, object, pass_type, pixel_array, num_pixels, depth, result); | ||||
| ▲ Show 20 Lines • Show All 215 Lines • Show Last 20 Lines | |||||