Fix setting the active vertex color when assigning false

Oversight in c517e4a501.
This commit is contained in:
Campbell Barton
2023-02-27 20:55:40 +11:00
parent 30db096cc8
commit 08af0f1204

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 == false) {
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 == false) {
return;
}
Mesh *mesh = (Mesh *)ptr->owner_id;
CustomDataLayer *layer = (CustomDataLayer *)ptr->data;