diff options
author | Jacques Lucke <jacques@blender.org> | 2022-02-03 18:59:26 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-02-03 18:59:26 +0300 |
commit | 7476eb761b828e253d70f49bd2507b3f0234c63a (patch) | |
tree | 4dcb38dd14d9f21a71d596c82304d386c83e2916 /source/blender/editors/object | |
parent | bcded0a1588dea0934f9a0cb3c4237ecae13c2c2 (diff) | |
parent | 4be87e97f48533e16594b6ec73980ffb2ba12ade (diff) |
Merge branch 'blender-v3.1-release'
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_modifier.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_modifier.c b/source/blender/editors/object/object_modifier.c index 71ad54383a6..4ac2a9dca62 100644 --- a/source/blender/editors/object/object_modifier.c +++ b/source/blender/editors/object/object_modifier.c @@ -763,6 +763,12 @@ 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); + if (md_eval->type == eModifierType_Multires) { multires_customdata_delete(me); } |