Fix #105168: Entering vertexpaint creates a non-default color attribute

Caused by 6514bb05ea

The new attribute was set active, but not default (camera icon).
Now set it default as well.

Pull Request #105169
This commit is contained in:
Philipp Oeser
2023-02-24 13:19:10 +01:00
committed by Philipp Oeser
parent 47d4ec5aef
commit b8359ede7d

View File

@@ -511,6 +511,7 @@ bool ED_mesh_color_ensure(Mesh *me, const char *name)
}
BKE_id_attributes_active_color_set(&me->id, unique_name);
BKE_id_attributes_default_color_set(&me->id, unique_name);
BKE_mesh_tessface_clear(me);
DEG_id_tag_update(&me->id, 0);