Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_draw.cc
| Show First 20 Lines • Show All 2,407 Lines • ▼ Show 20 Lines | |||||
| * \{ */ | * \{ */ | ||||
| void ED_view3d_datamask(const bContext *C, | void ED_view3d_datamask(const bContext *C, | ||||
| const Scene * /*scene*/, | const Scene * /*scene*/, | ||||
| const View3D *v3d, | const View3D *v3d, | ||||
| CustomData_MeshMasks *r_cddata_masks) | CustomData_MeshMasks *r_cddata_masks) | ||||
| { | { | ||||
| if (ELEM(v3d->shading.type, OB_TEXTURE, OB_MATERIAL, OB_RENDER)) { | if (ELEM(v3d->shading.type, OB_TEXTURE, OB_MATERIAL, OB_RENDER)) { | ||||
| r_cddata_masks->lmask |= CD_MASK_MLOOPUV | CD_MASK_PROP_BYTE_COLOR; | r_cddata_masks->lmask |= CD_MASK_PROP_FLOAT2 | CD_MASK_PROP_BYTE_COLOR; | ||||
| r_cddata_masks->vmask |= CD_MASK_ORCO | CD_MASK_PROP_COLOR; | r_cddata_masks->vmask |= CD_MASK_ORCO | CD_MASK_PROP_COLOR; | ||||
| } | } | ||||
| else if (v3d->shading.type == OB_SOLID) { | else if (v3d->shading.type == OB_SOLID) { | ||||
| if (v3d->shading.color_type == V3D_SHADING_TEXTURE_COLOR) { | if (v3d->shading.color_type == V3D_SHADING_TEXTURE_COLOR) { | ||||
| r_cddata_masks->lmask |= CD_MASK_MLOOPUV; | r_cddata_masks->lmask |= CD_MASK_PROP_FLOAT2; | ||||
| } | } | ||||
| if (v3d->shading.color_type == V3D_SHADING_VERTEX_COLOR) { | if (v3d->shading.color_type == V3D_SHADING_VERTEX_COLOR) { | ||||
| r_cddata_masks->lmask |= CD_MASK_PROP_BYTE_COLOR; | r_cddata_masks->lmask |= CD_MASK_PROP_BYTE_COLOR; | ||||
| r_cddata_masks->vmask |= CD_MASK_ORCO | CD_MASK_PROP_COLOR; | r_cddata_masks->vmask |= CD_MASK_ORCO | CD_MASK_PROP_COLOR; | ||||
| } | } | ||||
| } | } | ||||
| if ((CTX_data_mode_enum(C) == CTX_MODE_EDIT_MESH) && | if ((CTX_data_mode_enum(C) == CTX_MODE_EDIT_MESH) && | ||||
| ▲ Show 20 Lines • Show All 188 Lines • Show Last 20 Lines | |||||