Fix: Set active color attribute copy & paste mistake

This commit is contained in:
Hans Goudey 2023-01-02 10:39:55 -05:00
parent 94155fb6ff
commit 4ae8c52a95
1 changed files with 2 additions and 2 deletions

View File

@ -712,9 +712,9 @@ static void rna_AttributeGroup_active_color_name_set(PointerRNA *ptr, const char
ID *id = ptr->owner_id;
if (GS(id->name) == ID_ME) {
Mesh *mesh = (Mesh *)id;
MEM_SAFE_FREE(mesh->default_color_attribute);
MEM_SAFE_FREE(mesh->active_color_attribute);
if (value[0]) {
mesh->default_color_attribute = BLI_strdup(value);
mesh->active_color_attribute = BLI_strdup(value);
}
}
}