Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2022-02-10 20:03:37 +0300
committerJacques Lucke <jacques@blender.org>2022-02-10 20:03:37 +0300
commit25c4000796833966386b125744b17ede81aa62b1 (patch)
treee729ecb2f083835de90c808ed34d96a27c040873 /source/blender/editors/object/object_modifier.c
parent720d653b418bb5760c5891a2c8b74b72ea9889a9 (diff)
Fix T95613: remove anonymous attributes when converting object
This is the same behavior as when applying a geometry nodes modifier that adds anonymous attributes.
Diffstat (limited to 'source/blender/editors/object/object_modifier.c')
-rw-r--r--source/blender/editors/object/object_modifier.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/editors/object/object_modifier.c b/source/blender/editors/object/object_modifier.c
index 4ac2a9dca62..d8247d86e07 100644
--- a/source/blender/editors/object/object_modifier.c
+++ b/source/blender/editors/object/object_modifier.c
@@ -763,11 +763,8 @@ static bool modifier_apply_obdata(
BKE_object_material_from_eval_data(bmain, ob, &mesh_applied->id);
BKE_mesh_nomain_to_mesh(mesh_applied, me, ob, &CD_MASK_MESH, true);
- /* Anonymous attributes shouldn't by available on the applied geometry. */
- CustomData_free_layers_anonymous(&me->vdata, me->totvert);
- CustomData_free_layers_anonymous(&me->edata, me->totedge);
- CustomData_free_layers_anonymous(&me->pdata, me->totpoly);
- CustomData_free_layers_anonymous(&me->ldata, me->totloop);
+ /* Anonymous attributes shouldn't be available on the applied geometry. */
+ BKE_mesh_anonymous_attributes_remove(me);
if (md_eval->type == eModifierType_Multires) {
multires_customdata_delete(me);