diff options
Diffstat (limited to 'source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_vcol.cc')
-rw-r--r-- | source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_vcol.cc | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_vcol.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_vcol.cc index 4cb68cad66c..e5dd025787d 100644 --- a/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_vcol.cc +++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_vcol.cc @@ -90,7 +90,7 @@ static void init_vcol_format(GPUVertFormat *format, GPU_vertformat_safe_attr_name(ref.layer->name, attr_safe_name, GPU_MAX_SAFE_ATTR_NAME); /* VCol layer name. */ - BLI_snprintf(attr_name, sizeof(attr_name), "c%s", attr_safe_name); + BLI_snprintf(attr_name, sizeof(attr_name), "a%s", attr_safe_name); GPU_vertformat_attr_add(format, attr_name, GPU_COMP_U16, 4, GPU_FETCH_INT_TO_FLOAT_UNIT); /* Active layer name. */ @@ -102,16 +102,6 @@ static void init_vcol_format(GPUVertFormat *format, if (ref.layer == render) { GPU_vertformat_alias_add(format, "c"); } - - /* Gather number of auto layers. */ - /* We only do `vcols` that are not overridden by `uvs`. */ - bool bad = ref.domain == ATTR_DOMAIN_CORNER; - bad = bad && CustomData_get_named_layer_index(cd_ldata, CD_MLOOPUV, ref.layer->name) != -1; - - if (!bad) { - BLI_snprintf(attr_name, sizeof(attr_name), "a%s", attr_safe_name); - GPU_vertformat_alias_add(format, attr_name); - } } } |