Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_cache_impl_mesh.c
| Show First 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | if (gpumat) { | ||||
| type = CD_MTFACE; | type = CD_MTFACE; | ||||
| if (layer == -1) { | if (layer == -1) { | ||||
| layer = CustomData_get_named_layer(cd_ldata, CD_MLOOPCOL, name); | layer = CustomData_get_named_layer(cd_ldata, CD_MLOOPCOL, name); | ||||
| type = CD_MCOL; | type = CD_MCOL; | ||||
| } | } | ||||
| if (layer == -1) { | if (layer == -1) { | ||||
| if (U.experimental.use_sculpt_vertex_colors) { | |||||
| layer = CustomData_get_named_layer(cd_vdata, CD_PROP_COLOR, name); | layer = CustomData_get_named_layer(cd_vdata, CD_PROP_COLOR, name); | ||||
| type = CD_PROP_COLOR; | type = CD_PROP_COLOR; | ||||
| } | } | ||||
| } | |||||
| #if 0 /* Tangents are always from UV's - this will never happen. */ | #if 0 /* Tangents are always from UV's - this will never happen. */ | ||||
| if (layer == -1) { | if (layer == -1) { | ||||
| layer = CustomData_get_named_layer(cd_ldata, CD_TANGENT, name); | layer = CustomData_get_named_layer(cd_ldata, CD_TANGENT, name); | ||||
| type = CD_TANGENT; | type = CD_TANGENT; | ||||
| } | } | ||||
| #endif | #endif | ||||
| if (layer == -1) { | if (layer == -1) { | ||||
| continue; | continue; | ||||
| ▲ Show 20 Lines • Show All 1,332 Lines • Show Last 20 Lines | |||||