forked from blender/blender
main sync #3
@ -1279,7 +1279,7 @@ static PointerRNA rna_Mesh_sculpt_vertex_color_active_get(PointerRNA *ptr)
|
|||||||
{
|
{
|
||||||
Mesh *mesh = (Mesh *)ptr->data;
|
Mesh *mesh = (Mesh *)ptr->data;
|
||||||
CustomDataLayer *layer = BKE_id_attribute_search(
|
CustomDataLayer *layer = BKE_id_attribute_search(
|
||||||
&mesh->id, mesh->active_color_attribute, CD_MASK_PROP_COLOR, ATTR_DOMAIN_POINT);
|
&mesh->id, mesh->active_color_attribute, CD_MASK_PROP_COLOR, ATTR_DOMAIN_MASK_POINT);
|
||||||
return rna_pointer_inherit_refine(ptr, &RNA_MeshVertColorLayer, layer);
|
return rna_pointer_inherit_refine(ptr, &RNA_MeshVertColorLayer, layer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1301,7 +1301,7 @@ static int rna_Mesh_sculpt_vertex_color_active_index_get(PointerRNA *ptr)
|
|||||||
{
|
{
|
||||||
Mesh *mesh = (Mesh *)ptr->data;
|
Mesh *mesh = (Mesh *)ptr->data;
|
||||||
CustomDataLayer *layer = BKE_id_attribute_search(
|
CustomDataLayer *layer = BKE_id_attribute_search(
|
||||||
&mesh->id, mesh->active_color_attribute, CD_MASK_PROP_COLOR, ATTR_DOMAIN_POINT);
|
&mesh->id, mesh->active_color_attribute, CD_MASK_PROP_COLOR, ATTR_DOMAIN_MASK_POINT);
|
||||||
if (!layer) {
|
if (!layer) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user