Cleanup: Avoid using invalid attribute domain
The number of attribute domains isn't an attribute domain, so storing ATTR_DOMAIN_NUM in a variable with an eAttrDomain type isn't correct. In the cases it was used, the value wouldn't be accessed anyway.
This commit is contained in:
@@ -1324,7 +1324,7 @@ bool GPU_pbvh_attribute_names_update(PBVHType pbvh_type,
|
||||
eAttrDomain active_color_domain = active_color_layer ?
|
||||
BKE_id_attribute_domain(&me_query.id,
|
||||
active_color_layer) :
|
||||
ATTR_DOMAIN_NUM;
|
||||
ATTR_DOMAIN_POINT;
|
||||
|
||||
GPUAttrRef vcol_layers[MAX_GPU_ATTR];
|
||||
int totlayer = gpu_pbvh_make_attr_offs(ATTR_DOMAIN_MASK_COLOR,
|
||||
|
||||
Reference in New Issue
Block a user