Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_bake.c
| Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | CTX_DATA_BEGIN (C, Base *, base, selected_editable_bases) { | ||||
| } | } | ||||
| if (!ok) { | if (!ok) { | ||||
| BKE_report(op->reports, RPT_ERROR, "Multires data baking requires multi-resolution object"); | BKE_report(op->reports, RPT_ERROR, "Multires data baking requires multi-resolution object"); | ||||
| break; | break; | ||||
| } | } | ||||
| if (!CustomData_has_layer(&me->ldata, CD_MLOOPUV)) { | if (!CustomData_has_layer(&me->ldata, CD_PROP_FLOAT2)) { | ||||
| BKE_report(op->reports, RPT_ERROR, "Mesh should be unwrapped before multires data baking"); | BKE_report(op->reports, RPT_ERROR, "Mesh should be unwrapped before multires data baking"); | ||||
| ok = false; | ok = false; | ||||
| } | } | ||||
| else { | else { | ||||
| const int *material_indices = BKE_mesh_material_indices(me); | const int *material_indices = BKE_mesh_material_indices(me); | ||||
| a = me->totpoly; | a = me->totpoly; | ||||
| while (ok && a--) { | while (ok && a--) { | ||||
| ▲ Show 20 Lines • Show All 498 Lines • Show Last 20 Lines | |||||