Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_bake_api.c
| Show First 20 Lines • Show All 1,340 Lines • ▼ Show 20 Lines | static int bake_exec(bContext *C, wmOperator *op) | ||||||||
| /* setup new render */ | /* setup new render */ | ||||||||
| RE_test_break_cb(re, NULL, bake_break); | RE_test_break_cb(re, NULL, bake_break); | ||||||||
| if (!bake_pass_filter_check(bkr.pass_type, bkr.pass_filter, bkr.reports)) { | if (!bake_pass_filter_check(bkr.pass_type, bkr.pass_filter, bkr.reports)) { | ||||||||
| goto finally; | goto finally; | ||||||||
| } | } | ||||||||
| if (!(bkr.view_layer->layflag & SCE_LAY_SOLID)) { | |||||||||
| BKE_reportf(bkr.reports, RPT_ERROR, "Surfaces are disabled in the view layer"); | |||||||||
BlendifyUnsubmitted Done Inline Actions
Blendify: | |||||||||
| return false; | |||||||||
| } | |||||||||
| if (!bake_objects_check(bkr.main, | if (!bake_objects_check(bkr.main, | ||||||||
| bkr.view_layer, | bkr.view_layer, | ||||||||
| bkr.ob, | bkr.ob, | ||||||||
| &bkr.selected_objects, | &bkr.selected_objects, | ||||||||
| bkr.reports, | bkr.reports, | ||||||||
| bkr.is_selected_to_active)) { | bkr.is_selected_to_active)) { | ||||||||
| goto finally; | goto finally; | ||||||||
| } | } | ||||||||
| ▲ Show 20 Lines • Show All 487 Lines • Show Last 20 Lines | |||||||||