diff options
author | Joseph Eagar <joeedh@gmail.com> | 2021-11-04 01:06:27 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2021-11-04 01:06:27 +0300 |
commit | a8fa8bf36445155691cb13feb1647c5b423c622c (patch) | |
tree | 6e7f2a7f9c7508b95f3793271c2c473df4e0266f /source/blender/draw/intern/draw_cache_impl_mesh.c | |
parent | 3efad90211aaee8c12497cbf1ac2396e7a64edc0 (diff) |
temp-sculpt-colors: implement patch review items
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_mesh.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_mesh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c index d78b864a952..88d4f287c9b 100644 --- a/source/blender/draw/intern/draw_cache_impl_mesh.c +++ b/source/blender/draw/intern/draw_cache_impl_mesh.c @@ -468,7 +468,7 @@ static bool mesh_cd_calc_active_vcol_layer(Mesh *me, DRW_MeshAttributes *attrs_u int type, idx = -1; AttributeDomain domain; - if (layer && ELEM(layer->type, CD_PROP_FLOAT3, CD_PROP_COLOR, CD_MLOOPCOL)) { + if (layer && ELEM(layer->type, CD_PROP_COLOR, CD_MLOOPCOL)) { domain = BKE_id_attribute_domain((ID *)me, layer); type = layer->type; @@ -661,11 +661,11 @@ static DRW_MeshCDMask mesh_cd_calc_used_gpu_layers(const Mesh *me, cd_used.orco = 1; break; } - case CD_PROP_FLOAT3: + case CD_PROP_COLOR: cd_used.vcol = 1; - /* fallthrough */ + case CD_PROP_FLOAT3: case CD_PROP_BOOL: case CD_PROP_INT32: case CD_PROP_FLOAT: |