Fix setting the active vertex color when assigning false

Oversight in c517e4a501.
This commit is contained in:
2023-02-28 10:03:05 +11:00
parent 4d5e68a638
commit d291955665

View File

@@ -1233,14 +1233,19 @@ static bool rna_mesh_color_active_get(PointerRNA *ptr)
static void rna_mesh_color_active_render_set(PointerRNA *ptr, bool value)
{
if (!value) {
return;
}
Mesh *mesh = (Mesh *)ptr->owner_id;
CustomDataLayer *layer = (CustomDataLayer *)ptr->data;
BKE_id_attributes_default_color_set(&mesh->id, layer->name);
}
static void rna_mesh_color_active_set(PointerRNA *ptr, bool value)
{
if (!value) {
return;
}
Mesh *mesh = (Mesh *)ptr->owner_id;
CustomDataLayer *layer = (CustomDataLayer *)ptr->data;