diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-03-07 11:28:18 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-03-07 11:28:18 +0300 |
commit | 781e2124277d38968529af25a5fcbc2793f4bd84 (patch) | |
tree | 6ba8c0de49b353bffd0e7df3c63ddf3762987c5f /source/blender/draw/intern/draw_cache_impl_mesh.c | |
parent | ba410bb416b931fb09698810f2eabbe882220389 (diff) |
temp-sculpt-colors: Cleanup a few comments.
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_mesh.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_mesh.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c index ec74cc59208..eb9a50493f0 100644 --- a/source/blender/draw/intern/draw_cache_impl_mesh.c +++ b/source/blender/draw/intern/draw_cache_impl_mesh.c @@ -517,8 +517,8 @@ static DRW_MeshCDMask mesh_cd_calc_used_gpu_layers(const Object *object, const CustomData *cd_vdata = mesh_cd_vdata_get_from_mesh(me_final); const CustomData *cd_edata = mesh_cd_edata_get_from_mesh(me_final); - /* create a local copy of mesh with final customdata domains - we can query */ + /* Create a local copy of mesh with final customdata domains + we can query. */ Mesh query_mesh = *me; BKE_id_attribute_copy_domains_temp(&query_mesh.id, cd_vdata, cd_edata, cd_ldata, cd_pdata, NULL); @@ -652,9 +652,9 @@ static DRW_MeshCDMask mesh_cd_calc_used_gpu_layers(const Object *object, break; } - /* note that attr->type will always be CD_PROP_COLOR even for + /* Note: attr->type will always be CD_PROP_COLOR even for CD_MLOOPCOL layers, see node_shader_gpu_vertex_color in - node_shader_vertex_color.cc + node_shader_vertex_color.cc. */ case CD_MCOL: case CD_MLOOPCOL: @@ -680,7 +680,7 @@ static DRW_MeshCDMask mesh_cd_calc_used_gpu_layers(const Object *object, layer_i; } - /* Note that this is not the same as the layer_i below. */ + /* Note: this is not the same as the layer_i below. */ if (layer_i != -1) { layer = (domain == ATTR_DOMAIN_POINT ? cd_vdata : cd_ldata)->layers + layer_i; } |