Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_cache_impl_mesh.c
| Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | static void mesh_cd_calc_active_vcol_layer(const Mesh *me, DRW_MeshCDMask *cd_used) | ||||
| if (layer != -1) { | if (layer != -1) { | ||||
| cd_used->sculpt_vcol |= (1 << layer); | cd_used->sculpt_vcol |= (1 << layer); | ||||
| } | } | ||||
| } | } | ||||
| static void mesh_cd_calc_active_mloopcol_layer(const Mesh *me, DRW_MeshCDMask *cd_used) | static void mesh_cd_calc_active_mloopcol_layer(const Mesh *me, DRW_MeshCDMask *cd_used) | ||||
| { | { | ||||
| const Mesh *me_final = editmesh_final_or_this(me); | const Mesh *me_final = editmesh_final_or_this(me); | ||||
| const CustomData *cd_ldata = &me_final->ldata; | const CustomData *cd_ldata = mesh_cd_ldata_get_from_mesh(me_final); | ||||
| int layer = CustomData_get_active_layer(cd_ldata, CD_MLOOPCOL); | int layer = CustomData_get_active_layer(cd_ldata, CD_MLOOPCOL); | ||||
| if (layer != -1) { | if (layer != -1) { | ||||
| cd_used->vcol |= (1 << layer); | cd_used->vcol |= (1 << layer); | ||||
| } | } | ||||
| } | } | ||||
| static DRW_MeshCDMask mesh_cd_calc_used_gpu_layers(const Mesh *me, | static DRW_MeshCDMask mesh_cd_calc_used_gpu_layers(const Mesh *me, | ||||
| ▲ Show 20 Lines • Show All 1,390 Lines • Show Last 20 Lines | |||||