Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_bake_api.c
| Show First 20 Lines • Show All 1,155 Lines • ▼ Show 20 Lines | static void bake_init_api_data(wmOperator *op, bContext *C, BakeAPIRender *bkr) | ||||
| } | } | ||||
| CTX_data_selected_objects(C, &bkr->selected_objects); | CTX_data_selected_objects(C, &bkr->selected_objects); | ||||
| bkr->reports = op->reports; | bkr->reports = op->reports; | ||||
| bkr->result = OPERATOR_CANCELLED; | bkr->result = OPERATOR_CANCELLED; | ||||
| bkr->render = RE_NewRender(bkr->scene->id.name); | bkr->render = RE_NewSceneRender(bkr->scene); | ||||
| /* XXX hack to force saving to always be internal. Whether (and how) to support | /* XXX hack to force saving to always be internal. Whether (and how) to support | ||||
| * external saving will be addressed later */ | * external saving will be addressed later */ | ||||
| bkr->save_mode = R_BAKE_SAVE_INTERNAL; | bkr->save_mode = R_BAKE_SAVE_INTERNAL; | ||||
| } | } | ||||
| static int bake_exec(bContext *C, wmOperator *op) | static int bake_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 315 Lines • Show Last 20 Lines | |||||