Merge branch 'blender-v3.2-release'
This commit is contained in:
commit
fbf92f5967
|
@ -708,12 +708,18 @@ static DRW_MeshCDMask mesh_cd_calc_used_gpu_layers(const Object *object,
|
|||
case CD_MCOL:
|
||||
case CD_PROP_BYTE_COLOR:
|
||||
case CD_PROP_COLOR: {
|
||||
/* First check Color attributes, when not found check mesh attributes. Geometry nodes
|
||||
* can generate those layers. */
|
||||
int vcol_bit = mesh_cd_calc_gpu_layers_vcol_used(&me_query, cd_vdata, cd_ldata, name);
|
||||
|
||||
if (vcol_bit != -1) {
|
||||
cd_used.vcol |= 1UL << (uint)vcol_bit;
|
||||
break;
|
||||
}
|
||||
|
||||
if (layer != -1 && domain != ATTR_DOMAIN_NUM) {
|
||||
drw_mesh_attributes_add_request(attributes, type, layer, domain);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case CD_PROP_FLOAT3:
|
||||
|
|
Loading…
Reference in New Issue