From 174f3e616064a38aa05a82672295dafa31bbfc8a Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Fri, 24 Feb 2023 10:56:07 +0100 Subject: [PATCH] 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. --- source/blender/editors/mesh/mesh_data.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/editors/mesh/mesh_data.cc b/source/blender/editors/mesh/mesh_data.cc index f1792661d5b..bedc3802f50 100644 --- a/source/blender/editors/mesh/mesh_data.cc +++ b/source/blender/editors/mesh/mesh_data.cc @@ -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); -- 2.30.2